|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.core.Wrapper | +--org.objectweb.jac.wrappers.ForwardingWrapper
This wrapper forwards the method calls that arrive on the wrappee to another object. The wrapped methods should be supported both by the wrappee and the forwardee. Otherwise, an exception is raised.
ForwardingException
,
Serialized FormField Summary | |
protected Object |
forwardee
The forwardee. |
Fields inherited from class org.objectweb.jac.core.Wrapper |
ac |
Constructor Summary | |
ForwardingWrapper(AspectComponent ac,
Object forwardee)
Construct a new forwarding wrapper. |
Method Summary | |
Object |
forward(Interaction interaction)
Forwards all the incoming calls to the forwardee. |
Object |
getForwardee()
The getter method for the forwardee. |
Methods inherited from class org.objectweb.jac.core.Wrapper |
attr, attrdef, defines, getAspectComponent, getAspectComponentName, getExceptionHandlers, proceed, setAspectComponent, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Object forwardee
Constructor Detail |
public ForwardingWrapper(AspectComponent ac, Object forwardee)
forwardee
- the object that receives the forwarded callsMethod Detail |
public Object getForwardee()
forward(Interaction)
public Object forward(Interaction interaction) throws ForwardingException
The forwardee class must support the wrapped method prototype. Otherwise, an exception is raised.
ForwardingException
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |