SeamFramework.orgCommunity Documentation
Seam Solder provides a complete set of AnnotationLiteral
classes cooresponding to the
annotation types defined in the CDI (JSR-299) and Injection (JSR-330) specifications. These literals are located
in the org.jboss.seam.solder.literal
package.
For any annotation that does not define an attribute, its cooresponding AnnotationLiteral
contains a static INSTANCE
member. You should use this static member whenever you need a
reference to an annotation instance rather than creating a new instance explicitly.
new AnnotatedTypeBuilder<X>().readFromType(type).addToClass(NamedLiteral.INSTANCE);
Literals are provided for the following annotations from Context and Dependency Injection (including annotations from Dependency Injection for Java):
@Alternative
@Any
@ApplicationScoped
@ConversationScoped
@Decorator
@Default
@Delegate
@Dependent
@Disposes
@Inject
@Model
@Named
@New
@Nonbinding
@NormalScope
@Observes
@Produces
@RequestScoped
@SessionScoped
@Specializes
@Stereotype
@Typed
Literals are also provided for the following annotations from Seam Solder:
@Client
@DefaultBean
@Exact
@Generic
@GenericType
@Mapper
@MessageBundle
@Requires
@Resolver
@Resource
@Unwraps
@Veto
For more information about these annotations, consult the cooresponding API documentation.