|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.intarsys.tools.functor.FunctorMethodHandler
public class FunctorMethodHandler
| Constructor Summary | |
|---|---|
FunctorMethodHandler(java.lang.String name,
IFunctor invoker)
|
|
| Method Summary | |
|---|---|
static IMethodHandler |
create(IFunctor functor)
|
java.lang.Object |
getAttribute(java.lang.Object key)
Get an attribute value from the context |
IFunctor |
getInvoker()
|
java.lang.String |
getName()
|
java.lang.Object |
invoke(java.lang.Object receiver,
IArgs args)
Execute the implementation associated with this method in the context of the receiver and return the result. |
java.lang.Object |
removeAttribute(java.lang.Object key)
Remove an attribute binding in the context |
java.lang.Object |
setAttribute(java.lang.Object key,
java.lang.Object value)
Set the value of an attribute in the context |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FunctorMethodHandler(java.lang.String name,
IFunctor invoker)
| Method Detail |
|---|
public static IMethodHandler create(IFunctor functor)
public java.lang.Object getAttribute(java.lang.Object key)
IAttributeSupport
getAttribute in interface IAttributeSupportkey - the name of the attribute to get
keypublic IFunctor getInvoker()
public java.lang.String getName()
public java.lang.Object invoke(java.lang.Object receiver,
IArgs args)
throws MethodInvocationException
IMethodHandlerreceiver and return the result.
invoke in interface IMethodHandlerreceiver - The object implementing the method.args - The arguments for the invocation.
MethodInvocationExceptionpublic java.lang.Object removeAttribute(java.lang.Object key)
IAttributeSupport
removeAttribute in interface IAttributeSupportkey - the name of the attribute to remove
key
public java.lang.Object setAttribute(java.lang.Object key,
java.lang.Object value)
IAttributeSupport
setAttribute in interface IAttributeSupportkey - the name of the attribute to setvalue - the new value the attribute
key
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||