|
|||||||||||
| 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
mandala.rami.impl.ARFactory
This factory creates AsynchronousReferenceImpl instances.
The class AsynchronousReferenceImpl needs CallbackManager, FutureFactory and AsynchronousPolicy
instances to be created.
This factory uses a default asynchronous policy factory,
returned by getDefaultAPFactory() as the default
AsynchronousPolicyFactory which returns the AsynchronousPolicy to use when creating new
AsynchronousReferenceImpl instances. See AbstractARImplFactory for others default instances.
The property mandala.rami.impl.apf can be used to specify
the default asynchronous policy factory to use. This property must be a
string containing the full name of a class implementing the AsynchronousPolicyFactory with a default no-arg constructor such as
mandala.rami.impl.ThreadPooledAPFactory. If the property is
unset, then the default asynchronous policy factory is set to ThreadPooledAPFactory.
AsynchronousReferenceImpl,
CallbackManager,
FutureFactory,
AsynchronousPolicyFactory| Field Summary | |
protected AsynchronousPolicyFactory |
apf
The AsynchronousPolicyFactory to use when creating new
AsynchronousReferenceImpl instances. |
static String |
DEFAULT_APF_PROPERTY_STRING
Defines the property string used to specify the default asynchronous policy factory instance. |
| Fields inherited from class mandala.rami.impl.AbstractARImplFactory |
futureFactory |
| Fields inherited from class mandala.rami.AbstractARFactory |
callbackManager |
| Constructor Summary | |
ARFactory()
Creates a new ARFactory instance. |
|
ARFactory(AsynchronousPolicyFactory apf)
Creates a new ARFactory instance. |
|
ARFactory(CallbackManager callBackManager)
Creates a new ARFactory instance. |
|
ARFactory(CallbackManager callBackManager,
AsynchronousPolicyFactory apf)
Creates a new ARFactory instance. |
|
ARFactory(CallbackManager callBackManager,
FutureFactory futureFactory)
Creates a new ARFactory instance. |
|
ARFactory(CallbackManager callBackManager,
FutureFactory futureFactory,
AsynchronousPolicyFactory apf)
Creates a new ARFactory instance. |
|
ARFactory(FutureFactory futureFactory)
Creates a new ARFactory instance. |
|
ARFactory(FutureFactory futureFactory,
AsynchronousPolicyFactory apf)
Creates a new ARFactory instance. |
|
| Method Summary | |
static AsynchronousPolicyFactory |
getDefaultAPFactory()
Gets the default AsynchronousPolicyFactory used when
creating new AsynchronousReferenceImpl instances. |
protected AsynchronousReference |
getInstance(Object object,
CallbackManager callBackManager,
FutureFactory futureFactory)
Gets an asynchronous reference on the specified object. |
static void |
setDefaultAPFactory(AsynchronousPolicyFactory apf)
Sets the default AsynchronousPolicyFactory to use when
creating new AsynchronousReferenceImpl instances. |
| Methods inherited from class mandala.rami.impl.AbstractARImplFactory |
getDefaultFutureFactory, getInstance, getInstance |
| 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 |
public static final String DEFAULT_APF_PROPERTY_STRING
Defines the property string used to specify the default asynchronous policy factory instance.
protected final AsynchronousPolicyFactory apf
The AsynchronousPolicyFactory to use when creating new
AsynchronousReferenceImpl instances.
AsynchronousPolicyFactory,
AsynchronousReferenceImpl| Constructor Detail |
public ARFactory()
Creates a new ARFactory instance.
Equivalent to this(getDefaultCallbackManager(),
getDefaultFutureFactory(),
getDefaultAsynchronousPolicyFactory());.
CallbackManager,
FutureFactory,
AsynchronousPolicyFactory,
AsynchronousReferenceImplpublic ARFactory(CallbackManager callBackManager)
Creates a new ARFactory instance.
Equivalent to this(callBackManager, getDefaultFutureFactory(),
getDefaultAsynchronousPolicyFactory()).
callBackManager - the CallbackManager to use.public ARFactory(FutureFactory futureFactory)
Creates a new ARFactory instance.
Equivalent to this(getDefaultCallbackManager(), futureFactory,
getDefaultAsynchronousPolicyFactory()); .
futureFactory - the future factory to use.public ARFactory(AsynchronousPolicyFactory apf)
Creates a new ARFactory instance.
Equivalent to this(getDefaultCallbackManager(),
getDefaultFutureFactory(), asynchronousPolicyFactory);
apf - an AsynchronousPolicyFactory value
public ARFactory(CallbackManager callBackManager,
FutureFactory futureFactory)
Creates a new ARFactory instance.
Equivalent to this(callBackManager, futureFactory,
getDefaultAsynchronousPolicyFactory());.
callBackManager - a CallbackManager valuefutureFactory - a FutureFactory value
public ARFactory(CallbackManager callBackManager,
AsynchronousPolicyFactory apf)
Creates a new ARFactory instance.
Equivalent to this(callBackManager, getDefaultFutureFactory(),
asynchronousPolicyFactory);.
callBackManager - a CallbackManager valueapf - an AsynchronousPolicyFactory value
public ARFactory(FutureFactory futureFactory,
AsynchronousPolicyFactory apf)
Creates a new ARFactory instance.
Equivalent to this(getDefaultCallbackManager(), futureFactory,
asynchronousPolicyFactory);.
futureFactory - a FutureFactory valueapf - an AsynchronousPolicyFactory value
public ARFactory(CallbackManager callBackManager,
FutureFactory futureFactory,
AsynchronousPolicyFactory apf)
Creates a new ARFactory instance.
The specified callbackManager,
futureFactory and asynchronousPolicyFactory
will be used when creating new AsynchronousReference.
callBackManager - a CallbackManager valuefutureFactory - a FutureFactory valueapf - an AsynchronousPolicyFactory value| Method Detail |
public static AsynchronousPolicyFactory getDefaultAPFactory()
Gets the default AsynchronousPolicyFactory used when
creating new AsynchronousReferenceImpl instances.
AsynchronousPolicyFactory used when creating
new AsynchronousReferenceImpl instances.AsynchronousPolicyFactory,
AsynchronousReferenceImplpublic static void setDefaultAPFactory(AsynchronousPolicyFactory apf)
Sets the default AsynchronousPolicyFactory to use when
creating new AsynchronousReferenceImpl instances.
apf - the default AsynchronousPolicyFactory to use
when creating new AsynchronousReferenceImpl instances.
protected AsynchronousReference getInstance(Object object,
CallbackManager callBackManager,
FutureFactory futureFactory)
AbstractARImplFactoryGets 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.
getInstance in class AbstractARImplFactoryobject - 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 | ||||||||||