|
|||||||||||
| 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 Form| Field 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 BaseProgramListenerwhenDeserialized in class AspectComponentorgObject - 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 BaseProgramListenerwhenSerialized in class AspectComponentfinalObject - the corresponding serialized structure.orgObject - the object being serialized
whenDeserialized(SerializedJacObject,Wrappee),
SerializedJacObject.setACInfos(String,Object),
BindingWrapperpublic void whenObjectMiss(String name)
AspectComponentThe 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 BaseProgramListenerwhenObjectMiss in class AspectComponentname - the name of the objectBaseProgramListener.FOUND_OBJECT
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||