com.uwyn.rife.rep
Class SingleObjectParticipant

java.lang.Object
  extended by com.uwyn.rife.rep.SingleObjectParticipant
All Implemented Interfaces:
Participant

public abstract class SingleObjectParticipant
extends Object
implements Participant

Convenience abstract base class to make it easy to implement participants that only provide a single data object.

Since:
1.0
Version:
$Revision: 3634 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com)
See Also:
Participant

Constructor Summary
SingleObjectParticipant()
           
 
Method Summary
abstract  Object getObject()
          Returns the default object for this participant.
 Object getObject(Object key)
          Retrieves the object from the participant that corresponds to a particular key.
 boolean isFinished()
          Checks if the initialization of this participant is finished.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleObjectParticipant

public SingleObjectParticipant()
Method Detail

getObject

public abstract Object getObject()
Description copied from interface: Participant
Returns the default object for this participant.

Specified by:
getObject in interface Participant
Returns:
an Object instance containing the default object; or

null if no default object exists


getObject

public Object getObject(Object key)
Description copied from interface: Participant
Retrieves the object from the participant that corresponds to a particular key.

Specified by:
getObject in interface Participant
Parameters:
key - An Object instance that used as the key to look up a corresponding object from the participant.
Returns:
the requested Object instance; or

null if no object could be found that corresponds to the provided key


isFinished

public boolean isFinished()
Description copied from interface: Participant
Checks if the initialization of this participant is finished.

Specified by:
isFinished in interface Participant
Returns:
true if the initialization is finished; or

false if the initialization is in progress



Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.