|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmandala.rami.AbstractARFactory
This abstract class provides all the necessary method to customize the
CallbackManager used when creating
AsynchronousReference implementation instance.
This factory creates a new CallbackManagerImpl
instance as the default CallbackManager to use when creating
new AsynchronousReference implementation instances.
Subclasses must override the getInstance(Object, CallbackManager)
to customize the creation of asynchronous references.
CallbackManager,
AsynchronousReference,
CallbackManagerImpl| Field Summary | |
protected CallbackManager |
callbackManager
The CallbackManager to use when creating new
AsynchronousReference implementation instances. |
| Constructor Summary | |
AbstractARFactory()
Creates a new AbstractARFactory instance. |
|
AbstractARFactory(CallbackManager callbackManager)
Creates a new AbstractARFactory instance. |
|
| Method Summary | |
static CallbackManager |
getDefaultCallbackManager()
Gets the default CallbackManager used when creating new
AsynchronousReference implementation instances. |
AsynchronousReference |
getInstance(Object object)
Returns the AsynchronousReference which references
the specified object. |
protected abstract AsynchronousReference |
getInstance(Object object,
CallbackManager callbackManager)
Gets an asynchronous reference on the specified object. |
AsynchronousReference |
newInstance(ConstructorOp c,
Object[] args)
Returns a new AsynchronousReference which references
the object created with the given constructor and parameter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected CallbackManager callbackManager
The CallbackManager to use when creating new
AsynchronousReference implementation instances.
CallbackManager,
AsynchronousReference| Constructor Detail |
public AbstractARFactory()
Creates a new AbstractARFactory instance.
Equivalent to this(getDefaultCallbackManager());.
CallbackManagerpublic AbstractARFactory(CallbackManager callbackManager)
Creates a new AbstractARFactory instance.
The specified callbackManager will be used when creating
new AsynchronousReference.
callbackManager - the CallbackManager to use when
creating new AsynchronousReference| Method Detail |
public static CallbackManager getDefaultCallbackManager()
Gets the default CallbackManager used when creating new
AsynchronousReference implementation instances.
CallbackManager used when creating new
AsynchronousReference implementation instances.CallbackManager,
AsynchronousReferencepublic AsynchronousReference getInstance(Object object)
Framework.FactoryReturns the AsynchronousReference which references
the specified object.
If such an asynchronous reference doesn't exist, it will be created.
getInstance in interface Framework.Factoryobject - the object the returned asynchronous reference must
refer to
protected abstract AsynchronousReference getInstance(Object object,
CallbackManager callbackManager)
Gets an asynchronous reference on the specified object.
If the object is not already referenced by an asynchronous reference,
a new one is created with the specified
callbackManager.
object - an Object valuecallbackManager - a CallbackManager value
public AsynchronousReference newInstance(ConstructorOp c,
Object[] args)
Framework.FactoryReturns a new AsynchronousReference which references
the object created with the given constructor and parameter.
newInstance in interface Framework.Factoryc - the constructor to use for the instanciationargs - the arguments to use for the instanciation
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||