org.xwiki.component.embed
Class InitializableLifecycleHandler

java.lang.Object
  extended by org.xwiki.component.embed.InitializableLifecycleHandler
All Implemented Interfaces:
LifecycleHandler

public class InitializableLifecycleHandler
extends Object
implements LifecycleHandler

Handles lifecycle for InitializableLifecycleHandler.

Since:
3.2RC1

Constructor Summary
InitializableLifecycleHandler()
           
 
Method Summary
<T> void
handle(T instance, ComponentDescriptor<T> descriptor, ComponentManager componentManager)
          Handle initialization of the passed component instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitializableLifecycleHandler

public InitializableLifecycleHandler()
Method Detail

handle

public <T> void handle(T instance,
                       ComponentDescriptor<T> descriptor,
                       ComponentManager componentManager)
            throws Exception
Description copied from interface: LifecycleHandler
Handle initialization of the passed component instance.

Specified by:
handle in interface LifecycleHandler
Type Parameters:
T - the type of the Component
Parameters:
instance - the component instance to initialize
descriptor - the descriptor of the passed component
componentManager - the component manager which is initializing the Component
Throws:
Exception - in case the handler fails to handle the Component initialization