Interface CommonLifecycle<T>

  • Type Parameters:
    T - the type of object managed by this lifecycle.
    All Known Subinterfaces:
    DSpaceKernel
    All Known Implementing Classes:
    DSpaceKernelImpl

    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 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.