Annotation Type Start


  • @Target(METHOD)
    @Retention(RUNTIME)
    public @interface Start
    Method level annotation that indicates a (no-param) method to be called on a component registered in the component registry when the registry starts.

    Since:
    4.0
    Author:
    Manik Surtani (manik@jboss.org)
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      int priority
      Optional parameter which defines the order in which this method will be called when a component has more than one method annotated with Start.
    • Element Detail

      • priority

        int priority
        Optional parameter which defines the order in which this method will be called when a component has more than one method annotated with Start. Defaults to 10.

        Note: Prior to 9.4, priority parameter allowed the start methods of one component to run before or after the start methods of another component. Since 9.4, the priority parameter is ignored unless the component has multiple start methods. A component's start methods will always run after the start methods of its dependencies.

        Since:
        4.0
        Default:
        10