Method Summary |
|
protected Object | _getObject(Object key) Does the actual retrieval of an object from the participant according
to a specified key. |
protected Object | _getObject() |
protected void | cleanup() Performs the actual cleanup actions for the participant. |
public String | getCleanupMessage() Returns a message that is supposed to describe the cleanup of this
participant. |
public String | getInitializationMessage() Returns a message that is supposed to describe the initialization of
this participant. |
public String | getName() Retrieves the name of the thread. |
final public Object | getObject() Returns the default object for this participant. |
final public Object | getObject(Object key) Retrieves the object from the participant that corresponds to a
particular key.
If the initialization of the participant hasn't finished yet, the
thread that executes this method will be suspended and woken up when
the initialization finishes.
Parameters: key - An Object instance that used as the key toobtain a corresponding object from the participant with. |
public String | getParameter() Retrieves the optional parameter. |
public BlockingRepository | getRepository() Retrieves the repository that this participant belongs to. |
public ResourceFinder | getResourceFinder() Retrieves the resource finder that is used during the initialization. |
Thread | getThread() |
public boolean | hadInitializationError() Checks if the initialization of this participant threw an error. |
abstract protected void | initialize() Performs the actual initialization actions for the participant. |
final public boolean | isFinished() Checks if the initialization of this participant is finished. |
final public void | run() Starts the initialization. |
public void | setCleanupMessage(String message) Overrides the default message that describes the cleanup of this
participant. |
public void | setInitializationMessage(String message) Overrides the default message that describes the initialization of this
participant. |
void | setName(String name) Sets the name of the thread. |
public void | setParameter(String parameter) Sets the optional parameter. |
void | setRepository(BlockingRepository repository) Sets the repository that this participant belongs to. |
public void | setResourceFinder(ResourceFinder resourceFinder) Sets the resource finder that can be used during the
initialize() method. |
void | setThread(Thread thread) |
final public void | waitUntilFinished() Makes the calling thread wait until the initialization of this
participant has finished. |