org.dspace.kernel
Interface CommonLifecycle<T>

Type Parameters:
T - the type of object managed by this lifecycle.

public interface CommonLifecycle<T>

Beans that have a lifecycle and can be controlled via their lifecycle implement this interface. Based on the Sakai K2 lifecycle interface -AZ


Method Summary
 void destroy()
          Destroy the managed bean entirely.
 T getManagedBean()
          Gets a reference to the bean that is being managed inside this lifecycle.
 void start()
          Starts the bean.
 void stop()
          Stops the bean.
 

Method Detail

start

void start()
Starts the bean. This initializes and causes the object to begin functioning. Should not happen automatically when the object is created.


stop

void stop()
Stops the bean. This turns the object off and causes related things to be shutdown. Object should be able to be started again.


getManagedBean

T getManagedBean()
Gets a reference to the bean that is being managed inside this lifecycle.

Returns:
the managed object

destroy

void destroy()
Destroy the managed bean entirely. It will be stopped first if not stopped and cannot be started again afterwards.



Copyright © Monday, September 1, 2008-2010 The DSpace Foundation. All Rights Reserved.