|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.core.AspectComponent | +--org.objectweb.jac.aspects.naming.BindingAC
This aspect component implements the default binding policy for the JAC system.
The binding aspect uses the naming aspect. Do not try to use it alone.
NamingAC
,
Serialized FormField Summary |
Fields inherited from class org.objectweb.jac.core.AspectComponent |
application, blockKeywords, cr, currentConfigMethod, currentImports, firstCall, NOT_SHARED, SHARED, startWeavingCCount, startWeavingCount, startWeavingMethod, startWeavingType, systemListener, wrappers |
Fields inherited from interface org.objectweb.jac.core.BaseProgramListener |
FOUND_OBJECT |
Constructor Summary | |
BindingAC()
|
Method Summary | |
Wrappee |
whenDeserialized(SerializedJacObject orgObject,
Wrappee finalObject)
Bind a deserialized JAC object. |
void |
whenObjectMiss(String name)
This method is upcalled by JAC when an object was seeked into the name repository and was not found. |
Wrappee |
whenSerialized(Wrappee orgObject,
SerializedJacObject finalObject)
Add the name to the SerializedJacObject when an object that is wrapped by a BindingWrapper serialized. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BindingAC()
Method Detail |
public Wrappee whenDeserialized(SerializedJacObject orgObject, Wrappee finalObject)
This method takes the name filled by the naming aspect within
the serialized infos and wraps the final object by a
BindingWrapper
so that it can be resolved later
on. If the forwarding is disabled for this object, the new
object is registered within the repository and is not wrapped by
a binding wrapper.
whenDeserialized
in interface BaseProgramListener
whenDeserialized
in class AspectComponent
orgObject
- the JAC object that is being deserialized.finalObject
- the object being deserialized
Repository.register(String,Object)
,
NamingAC.whenSerialized(Wrappee,SerializedJacObject)
,
whenDeserialized(SerializedJacObject,Wrappee)
,
SerializedJacObject.getACInfos(String)
,
BindingWrapper
public Wrappee whenSerialized(Wrappee orgObject, SerializedJacObject finalObject)
BindingWrapper
serialized.
whenSerialized
in interface BaseProgramListener
whenSerialized
in class AspectComponent
finalObject
- the corresponding serialized structure.orgObject
- the object being serialized
whenDeserialized(SerializedJacObject,Wrappee)
,
SerializedJacObject.setACInfos(String,Object)
,
BindingWrapper
public void whenObjectMiss(String name)
AspectComponent
The reason of this miss can be multiple. For instance, the persistence aspect may have not already load the object from the storage, or the distribution aspect may need to bind to a remote object. Thus, this method allows the aspects to resolve the object.
By default, this method does nothing.
The final choosen name is a contextual attribute called FOUND_OBJECT.
whenObjectMiss
in interface BaseProgramListener
whenObjectMiss
in class AspectComponent
name
- the name of the objectBaseProgramListener.FOUND_OBJECT
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |