Package net.sf.jguiraffe.di.impl
Class NullInvocation
- java.lang.Object
-
- net.sf.jguiraffe.di.impl.NullInvocation
-
- All Implemented Interfaces:
Invokable
@Deprecated public final class NullInvocation extends Object implements Invokable
Deprecated.UseHelperInvocationsinstead; it provides some dummy implementations of theInvokableinterface which are useful in some situations where a full-blown implementation is not required.A dummy implementation of the
Invokableinterface that does not perform any action when it is invoked.This class (or the default instance provided through the
INSTANCEconstant) can be used as a default place holder for anInvokableobject. All methods are dummy implementations that have no side effect. So instead of checking for a nullInvokablereference, this dummy invocation can be used.- Version:
- $Id: NullInvocation.java 208 2012-02-11 20:57:33Z oheger $
- Author:
- Oliver Heger
-
-
Field Summary
Fields Modifier and Type Field Description static NullInvocationINSTANCEDeprecated.The default instance of this class.
-
Constructor Summary
Constructors Constructor Description NullInvocation()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<Dependency>getParameterDependencies()Deprecated.Returns the dependencies of thisInvokable.Objectinvoke(DependencyProvider depProvider, Object target)Deprecated.Invokes thisInvokable.StringtoString()Deprecated.Returns a string representation of this object.
-
-
-
Field Detail
-
INSTANCE
public static final NullInvocation INSTANCE
Deprecated.The default instance of this class.
-
-
Method Detail
-
getParameterDependencies
public List<Dependency> getParameterDependencies()
Deprecated.Returns the dependencies of thisInvokable. This is always an empty list.- Specified by:
getParameterDependenciesin interfaceInvokable- Returns:
- the dependencies of this object
-
invoke
public Object invoke(DependencyProvider depProvider, Object target)
Deprecated.Invokes thisInvokable. This is just an empty dummy.
-
-