|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
| Method Summary | |
|---|---|
java.util.List<Dependency> |
getParameterDependencies()
Returns a list with all dependencies required for this invocation. |
java.lang.Object |
invoke(DependencyProvider depProvider,
java.lang.Object target)
Performs the invocation. |
| Method Detail |
|---|
java.util.List<Dependency> getParameterDependencies()
java.lang.Object invoke(DependencyProvider depProvider,
java.lang.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
performed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||