Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.misc.xstream.Replaceable< T > Class Reference

List of all members.

Public Member Functions

synchronized void reset ()
synchronized void replace (T with)

Protected Member Functions

 Replaceable (T delegate)
synchronized boolean isReset ()

Protected Attributes

delegate

Detailed Description

Wraps an object to make it replaceable.


Constructor & Destructor Documentation

de.fu_berlin.inf.dpp.misc.xstream.Replaceable< T >.Replaceable ( delegate) [protected]

Member Function Documentation

synchronized boolean de.fu_berlin.inf.dpp.misc.xstream.Replaceable< T >.isReset ( ) [protected]
synchronized void de.fu_berlin.inf.dpp.misc.xstream.Replaceable< T >.replace ( with)

Replaces the current delegate with the given one. Does nothing if the given delegate is null.

See also:
isReset()
synchronized void de.fu_berlin.inf.dpp.misc.xstream.Replaceable< T >.reset ( )

Deactivates this replaceable.

Implementation can call isReset() to ensure that no calls reach the delegate.


Member Data Documentation

T de.fu_berlin.inf.dpp.misc.xstream.Replaceable< T >.delegate [protected]
 All Classes Namespaces Files Functions Variables Enumerations