Annotation Type FactoryComponent


  • @ComponentScoped
    @Documented
    @Named
    @Retention(RUNTIME)
    @Stereotype
    @Target(TYPE)
    public @interface FactoryComponent
    Identifies a factory component.

    Factory components MUST always be ComponentScoped. Applying any other scope will result in a definition error.

    Author:
    $Id: 3ec1e11fe049cfaa25cfa28abddd84fec2148669 $
    See Also:
    "Factory Component"
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value
      The configuration PID for the configuration of this Component.
    • Element Detail

      • value

        java.lang.String value
        The configuration PID for the configuration of this Component.

        The value specifies a configuration PID who's configuration properties are available at injection points in the component.

        A special string ("$") can be used to specify the name of the component as a configuration PID. The CDI_COMPONENT_NAME constant holds this special string.

        For example:

         @FactoryPID(CDI_COMPONENT_NAME)
         
        Default:
        "$"