|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jac.core.Wrapper
org.objectweb.jac.aspects.naming.BindingWrapper
This wrapper class binds an object to the actual named object by forwarder.
BindingWrapper
wraps the JAC object that that has not
been resolved yet by the binding aspect. When a call is performed
on the wrappee, the binder wrapper gets the actual JAC object that
corresponds to the logical name by asking the name repository of
the naming aspect. Then, it creates a forwarding wrapper to this
object and replaces itself with it.
The binding aspect uses the naming aspect. Do not try to use it alone.
ForwardingWrapper
,
Serialized FormField Summary | |
protected String |
logicalName
The name of the Jac object the binber must bind to. |
Fields inherited from class org.objectweb.jac.core.Wrapper |
ac, cr |
Constructor Summary | |
BindingWrapper(AspectComponent ac,
String logicalName)
Construct a new binding wrapper. |
Method Summary | |
Object |
bind(Interaction interaction)
This wrapping method binds the wrappee. |
Object |
construct(ConstructorInvocation invocation)
|
String |
getLogicalName()
The getter method for the Jac object's name (role method). |
Object |
invoke(MethodInvocation invocation)
|
Methods inherited from class org.objectweb.jac.core.Wrapper |
attr, attrdef, defines, getAspectComponent, getAspectComponentName, getExceptionHandlers, proceed, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected String logicalName
Constructor Detail |
public BindingWrapper(AspectComponent ac, String logicalName)
logicalName
- the name of the wrappee within the naming
aspectMethod Detail |
public String getLogicalName()
public Object bind(Interaction interaction) throws BindingErrorException
Binds the wrappee to its actual location by creating a new forwarder wrapper to wrap it. This wrapping method is called only once since the binder wrapper unwraps itself once the new wrapper is created.
BindingErrorException
ForwardingWrapper
public Object invoke(MethodInvocation invocation) throws Throwable
invoke
in interface MethodInterceptor
invoke
in class Wrapper
Throwable
public Object construct(ConstructorInvocation invocation) throws Throwable
construct
in interface ConstructorInterceptor
construct
in class Wrapper
Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |