org.xwiki.component.embed
Interface LifecycleHandler
- All Known Implementing Classes:
- ComposableLifecycleHandler, InitializableLifecycleHandler
public interface LifecycleHandler
A lifecycle handler is used when instantiating a Component and can perform operation to set up the component (for
example if a component implements a given interface calls a method of that interface, etc).
- Since:
- 3.2RC1
- Version:
- $Id: c880110c7d96ed6f3699ffacae76c5f0fab996a9 $
handle
<T> void handle(T instance,
ComponentDescriptor<T> descriptor,
ComponentManager componentManager)
throws Exception
- Handle initialization of the passed component instance.
- Type Parameters:
T - the type of the Component- Parameters:
instance - the component instance to initializedescriptor - the descriptor of the passed componentcomponentManager - the component manager which is initializing the Component
- Throws:
Exception - in case the handler fails to handle the Component initialization
Copyright © 2004–2015 XWiki. All rights reserved.