mandala.rami.impl
Class CallbackManagerImpl

java.lang.Object
  extended bymandala.rami.impl.CallbackManagerImpl
All Implemented Interfaces:
CallbackManager, java.io.Serializable

public class CallbackManagerImpl
extends java.lang.Object
implements CallbackManager, java.io.Serializable

Implementation of the CallbackManager interface.

Version:
1.0
Author:
eipi
See Also:
FutureFactory, CallbackManager, Serialized Form

Constructor Summary
CallbackManagerImpl()
           
 
Method Summary
 Callback getCallback()
          Returns the local thread scope Callback if it exists, returns the global object scope Callback otherwise.
 Callback getGlobalCallback()
          Returns this global object scope Callback.
 Callback getLocalCallback()
          Returns the local thread scope Callback.
 void setGlobalCallback(Callback callback)
          Sets this global object scope Callback.
 void setLocalCallback(Callback callback)
          Sets the local thread scope Callback.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CallbackManagerImpl

public CallbackManagerImpl()
Method Detail

toString

public java.lang.String toString()

getGlobalCallback

public Callback getGlobalCallback()
Description copied from interface: CallbackManager

Returns this global object scope Callback.

The Callback returns is the one which is associated to this instance.

Specified by:
getGlobalCallback in interface CallbackManager
Returns:
this global object scope Callback.
See Also:
Callback

setGlobalCallback

public void setGlobalCallback(Callback callback)
Description copied from interface: CallbackManager

Sets this global object scope Callback.

After this call, this instance is associated to the given Callback.

Specified by:
setGlobalCallback in interface CallbackManager
Parameters:
callback - the global object scope Callback to set.

getLocalCallback

public Callback getLocalCallback()
Description copied from interface: CallbackManager

Returns the local thread scope Callback.

The Callback returns is the one which is associated to the caller thread of this method.

Specified by:
getLocalCallback in interface CallbackManager
Returns:
the local thread scope Callback.
See Also:
Callback

setLocalCallback

public void setLocalCallback(Callback callback)
Description copied from interface: CallbackManager

Sets the local thread scope Callback.

After this call, the caller thread of this method is associate to the given Callback.

Specified by:
setLocalCallback in interface CallbackManager
Parameters:
callback - the local thread scope Callback

getCallback

public final Callback getCallback()
Description copied from interface: CallbackManager
Returns the local thread scope Callback if it exists, returns the global object scope Callback otherwise.

Returns the Callback associated with the caller thread of this method if it exists, returns the Callback associated with this instance otherwise.

Specified by:
getCallback in interface CallbackManager
Returns:
the local thread scope Callback if it exists, returns the global object scope Callback otherwise.


Mandala help mailing list