|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmandala.rami.AbstractARFactory
mandala.rami.impl.AbstractARImplFactory
This abstract class provides all the necessary method to customize the
CallbackManager
and the FutureFactory
used when
creating AsynchronousReference
implementation instances which
depends on FutureFactory
objects as AsynchronousReferenceImpl
and StoredObjectReference
.
This factory uses a BasicFutureFactory
instance
as the default FutureFactory
to use when creating new
AsynchronousReference
implementation instances. See AbstractARFactory
for others default instances.
Subclasses must override the getInstance(Object, CallbackManager,
FutureFactory)
to customize the creation of asynchronous references.
Field Summary | |
protected FutureFactory |
futureFactory
The FutureFactory to use when creating new
AsynchronousReference implementation instances. |
Fields inherited from class mandala.rami.AbstractARFactory |
callbackManager |
Constructor Summary | |
AbstractARImplFactory()
Creates a new AbstractARImplFactory instance. |
|
AbstractARImplFactory(CallbackManager callbackManager)
Creates a new AbstractARImplFactory instance. |
|
AbstractARImplFactory(CallbackManager callbackManager,
FutureFactory futureFactory)
Creates a new AbstractARImplFactory instance. |
|
AbstractARImplFactory(FutureFactory futureFactory)
Creates a new AbstractARImplFactory instance. |
Method Summary | |
static FutureFactory |
getDefaultFutureFactory()
Gets the default FutureFactory used when creating new
AsynchronousReference implementation instances. |
AsynchronousReference |
getInstance(java.lang.Object object)
Returns the AsynchronousReference which references
the specified object. |
AsynchronousReference |
getInstance(java.lang.Object object,
CallbackManager callbackManager)
Gets an asynchronous reference on the specified object. |
protected abstract AsynchronousReference |
getInstance(java.lang.Object object,
CallbackManager callbackManager,
FutureFactory futureFactory)
Gets an asynchronous reference on the specified object. |
Methods inherited from class mandala.rami.AbstractARFactory |
getDefaultCallbackManager, newInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final FutureFactory futureFactory
The FutureFactory
to use when creating new
AsynchronousReference
implementation instances.
FutureFactory
,
AsynchronousReferenceImpl
,
StoredObjectReference
Constructor Detail |
public AbstractARImplFactory()
Creates a new AbstractARImplFactory
instance.
Equivalent to this(getDefaultCallbackManager(),
getDefaultFutureFactory());
.
CallbackManager
,
FutureFactory
public AbstractARImplFactory(CallbackManager callbackManager)
Creates a new AbstractARImplFactory
instance.
Equivalent to this(callbackManager,
getDefaultFutureFactory());
.
callbackManager
- the CallbackManager
to use when
creating new AsynchronousReference
public AbstractARImplFactory(FutureFactory futureFactory)
Creates a new AbstractARImplFactory
instance.
Equivalent this(getDefaultCallbackManager(), futureFactory);
.
futureFactory
- the FutureFactory
to use when creating
new AsynchronousReference
public AbstractARImplFactory(CallbackManager callbackManager, FutureFactory futureFactory)
Creates a new AbstractARImplFactory
instance.
The specified callbackManager
and
futureFactory
will be used when creating new
AsynchronousReference
.
callbackManager
- the CallbackManager
to use when
creating new AsynchronousReference
futureFactory
- the FutureFactory
to use when creating
new AsynchronousReference
Method Detail |
public static FutureFactory getDefaultFutureFactory()
Gets the default FutureFactory
used when creating new
AsynchronousReference
implementation instances.
FutureFactory
used when creating new
AsynchronousReference
implementation instances.FutureFactory
,
AsynchronousReferenceImpl
,
StoredObjectReference
public AsynchronousReference getInstance(java.lang.Object object)
Framework.Factory
Returns the AsynchronousReference
which references
the specified object.
If such an asynchronous reference doesn't exist, it will be created.
getInstance
in interface Framework.Factory
getInstance
in class AbstractARFactory
public AsynchronousReference getInstance(java.lang.Object object, CallbackManager callbackManager)
AbstractARFactory
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
.
getInstance
in class AbstractARFactory
object
- an Object
valuecallbackManager
- a CallbackManager
value
protected abstract AsynchronousReference getInstance(java.lang.Object object, CallbackManager callbackManager, FutureFactory futureFactory)
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
and
futureFactory
.
object
- an Object
valuecallbackManager
- a CallbackManager
valuefutureFactory
- a FutureFactory
value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |