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 $
    • 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
        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