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).
    $Id: c880110c7d96ed6f3699ffacae76c5f0fab996a9 $
    • Method Detail

      • 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
        instance - the component instance to initialize
        descriptor - the descriptor of the passed component
        componentManager - the component manager which is initializing the Component
        Exception - in case the handler fails to handle the Component initialization