Interface Component

    • Method Detail

      • setName

        void setName​(String name)
        Sets the name for this component, as it was defined in its XML.

        This is called once after construction by the runtime framework.

        Parameters:
        name - the name
        Since:
        10.3
      • activate

        void activate​(ComponentContext context)
        Activates the component.

        This method is called by the runtime when a component is activated.

        Parameters:
        context - the runtime context
      • deactivate

        void deactivate​(ComponentContext context)
        Deactivates the component.

        This method is called by the runtime when a component is deactivated.

        Parameters:
        context - the runtime context
      • getApplicationStartedOrder

        default int getApplicationStartedOrder()
        The component notification order for applicationStarted(org.nuxeo.runtime.model.ComponentContext).

        Components are notified in increasing order. Order 1000 is the default order for components that don't care. Order 100 is the repository initialization.

        Returns:
        the order, 1000 by default
        Since:
        5.6
      • start

        void start​(ComponentContext context)
        Start the component. This method is called after all the components were resolved and activated
        Since:
        9.2