Package org.jvnet.hk2.annotations

HK2 annotations that mark components and their required dependencies. Primary API surface of HK2.

See:
          Description

Annotation Types Summary
CagedBy Annotation indicating that additional processing is performed when the component goes into a habitat.
CompanionOf Marks the component as a companion to another "lead" component.
Contract Marker annotation to allow implementations to be discovered from the contract they implement.
ContractProvided A service provider provides a service implementation, however, the provided service interface is not tagged with @Contract (a jdk interface for instance), therefore, it is specified through this annotation.
Extract Marks variables to be exported into the Habitat.
Factory Indicates that the object should be created by using the given factory component, instead of calling the constructor.
FactoryFor Indicates that the component serves as a factory for the specified type.
Index Marks the index property of the Contract annotations.
InhabitantAnnotation Meta-annotation indicating that the annotation designates an inhabitant of a Habitat.
InhabitantMetadata Meta-annotation to make annotation values readable as Inhabitant.metadata().
Inject Annotation to define a required resource for a component.
Lead Used on a companion object to request an injection of the corresponding lead object.
Optional Denotes anything optional, like an optional service, an optional parameter
Scoped Indicates the scope that this managed object is tied to.
Service Marker interface for service implementation.
ServiceProvider Denotes the service provider implementation.
 

Package org.jvnet.hk2.annotations Description

HK2 annotations that mark components and their required dependencies. Primary API surface of HK2.

HK2 modules primarily interact with HK2 by using these annotations.



Copyright © 2009 Sun Microsystems, Inc.. All Rights Reserved.