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.UseHelperInvocations
instead; it provides some dummy implementations of theInvokable
interface which are useful in some situations where a full-blown implementation is not required.A dummy implementation of the
Invokable
interface that does not perform any action when it is invoked.This class (or the default instance provided through the
INSTANCE
constant) can be used as a default place holder for anInvokable
object. All methods are dummy implementations that have no side effect. So instead of checking for a nullInvokable
reference, 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 NullInvocation
INSTANCE
Deprecated.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
.Object
invoke(DependencyProvider depProvider, Object target)
Deprecated.Invokes thisInvokable
.String
toString()
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:
getParameterDependencies
in interfaceInvokable
- Returns:
- the dependencies of this object
-
invoke
public Object invoke(DependencyProvider depProvider, Object target)
Deprecated.Invokes thisInvokable
. This is just an empty dummy.
-
-