Annotation Interface DefaultFactoryFor


@Target(TYPE) @Retention(CLASS) public @interface DefaultFactoryFor
An annotation that is used internally, for defining a DEFAULT factory to be used when constructing components. This annotation allows you to define which components can be constructed by the annotated factory.
Since:
4.0
Author:
Manik Surtani (manik@jboss.org)
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    Components that may be constructed by a factory annotated with this annotation.
     
  • Element Details

    • classes

      Class<?>[] classes
      Components that may be constructed by a factory annotated with this annotation.
      Returns:
      classes that can be constructed by this factory
      Default:
      {}
    • names

      String[] names
      Default:
      {}