Annotation Interface 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.

See Also:
  • "Factory Component"
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Support inline instantiation of the FactoryComponent annotation.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The configuration PID for the configuration of this Component.
  • Element Details

    • value

      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:
      "$"