|
intarsys runtime library | |||||||||
| 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(String name,
IFunctor invoker)
|
|
| Method Summary | |
|---|---|
static IMethodHandler |
create(IFunctor functor)
|
Object |
getAttribute(Object key)
Get an attribute value from the context |
IFunctor |
getInvoker()
|
String |
getName()
|
Object |
invoke(Object receiver,
IArgs args)
Execute the implementation associated with this method in the context of the receiver and return the result. |
Object |
removeAttribute(Object key)
Remove an attribute binding in the context |
Object |
setAttribute(Object key,
Object value)
Set the value of an attribute in the context |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FunctorMethodHandler(String name,
IFunctor invoker)
| Method Detail |
|---|
public static IMethodHandler create(IFunctor functor)
public Object getAttribute(Object key)
IAttributeSupport
getAttribute in interface IAttributeSupportkey - the name of the attribute to get
keypublic IFunctor getInvoker()
public String getName()
public Object invoke(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 Object removeAttribute(Object key)
IAttributeSupport
removeAttribute in interface IAttributeSupportkey - the name of the attribute to remove
key
public Object setAttribute(Object key,
Object value)
IAttributeSupport
setAttribute in interface IAttributeSupportkey - the name of the attribute to setvalue - the new value the attribute
key
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||