Package de.intarsys.tools.functor
Class FunctorMethodHandler
java.lang.Object
de.intarsys.tools.functor.FunctorMethodHandler
- All Implemented Interfaces:
IAttributeSupport
,IMethodHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IMethodHandler
getAttribute
(Object key) Get an attribute value from the contextgetName()
Execute the implementation associated with this method in the context of thereceiver
and return the result.removeAttribute
(Object key) Remove an attribute binding in the contextsetAttribute
(Object key, Object value) Set the value of an attribute in the context
-
Constructor Details
-
FunctorMethodHandler
-
-
Method Details
-
create
-
getAttribute
Description copied from interface:IAttributeSupport
Get an attribute value from the context- Specified by:
getAttribute
in interfaceIAttributeSupport
- Parameters:
key
- the name of the attribute to get- Returns:
- The value of the attribute
key
-
getInvoker
-
getName
-
invoke
Description copied from interface:IMethodHandler
Execute the implementation associated with this method in the context of thereceiver
and return the result.- Specified by:
invoke
in interfaceIMethodHandler
- Parameters:
receiver
- The object implementing the method.args
- The arguments for the invocation.- Returns:
- The result of the invocation.
- Throws:
MethodInvocationException
-
removeAttribute
Description copied from interface:IAttributeSupport
Remove an attribute binding in the context- Specified by:
removeAttribute
in interfaceIAttributeSupport
- Parameters:
key
- the name of the attribute to remove- Returns:
- The previously associated value for
key
-
setAttribute
Description copied from interface:IAttributeSupport
Set the value of an attribute in the context- Specified by:
setAttribute
in interfaceIAttributeSupport
- Parameters:
key
- the name of the attribute to setvalue
- the new value the attribute- Returns:
- The previously associated value for
key
-