|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.uwyn.rife.rep.SingleObjectParticipant
public abstract class SingleObjectParticipant
Convenience abstract base class to make it easy to implement participants that only provide a single data object.
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 |
|---|
public SingleObjectParticipant()
| Method Detail |
|---|
public abstract Object getObject()
Participant
getObject in interface Participantan Object instance containing the default
object; or
null if no default object exists
public Object getObject(Object key)
Participant
getObject in interface Participantkey - An Object instance that used as the key to look
up a corresponding object from the participant.
Object instance; or
null if no object could be found that corresponds to
the provided key
public boolean isFinished()
Participant
isFinished in interface Participanttrue if the initialization is finished; or
false if the initialization is in progress
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||