public interface Invokable
Definition of an interface for objects that perform some kind of method invocation.
This interface allows handling of different invocations (e.g. constructor
invocation, method invocation, etc.) in a generic way. It defines an
invoke()
method with a generic signature. It also demands that
invokable objects must be able to return a list of dependencies they require.
Modifier and Type | Method and Description |
---|---|
List<Dependency> |
getParameterDependencies()
Returns a list with all dependencies required for this invocation.
|
Object |
invoke(DependencyProvider depProvider,
Object target)
Performs the invocation.
|
List<Dependency> getParameterDependencies()
Object invoke(DependencyProvider depProvider, Object target)
Invokable
object, which actually executes a method. The
passed in parameters should satisfy all requirements of an arbitrary
invocation. Some of them may not be needed for a concrete invocation
(e.g. a constructor invocation does not require a target object).depProvider
- the dependency provider, which can be used for
resolving the parameter dependenciestarget
- the target object, on which the invocation should be
performedCopyright © 2016 The JGUIraffe Team. All rights reserved.