HelperInvocations
instead; it provides some dummy
implementations of the Invokable
interface which are useful in some
situations where a full-blown implementation is not required.@Deprecated public final class NullInvocation extends Object implements Invokable
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 an Invokable
object. All methods are dummy implementations that have no side effect. So
instead of checking for a null Invokable
reference, this dummy
invocation can be used.
Modifier and Type | Field and Description |
---|---|
static NullInvocation |
INSTANCE
Deprecated.
The default instance of this class.
|
Constructor and Description |
---|
NullInvocation()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<Dependency> |
getParameterDependencies()
Deprecated.
Returns the dependencies of this
Invokable . |
Object |
invoke(DependencyProvider depProvider,
Object target)
Deprecated.
Invokes this
Invokable . |
String |
toString()
Deprecated.
Returns a string representation of this object.
|
public static final NullInvocation INSTANCE
public List<Dependency> getParameterDependencies()
Invokable
. This is always an
empty list.getParameterDependencies
in interface Invokable
public Object invoke(DependencyProvider depProvider, Object target)
Invokable
. This is just an empty dummy.Copyright © 2016 The JGUIraffe Team. All rights reserved.