|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.hk2.component.InhabitantsFile
@Deprecated public class InhabitantsFile
Inhabitants file.
Inhabitants file describe inhabitants (objects) that are to be placed into the habitat. This file is generated by the APT processor, which is integrated transparently into the build process by the HK2 maven plugin.
The file is by convention placed into /"META-INF/inhabitants"/xyz where 'xyz'
portion is the identifier of the habitat
.
This allows multiple different habitats to be created over the same set of classes.
For example, there can be one habitat for the whole GF, then there are smaller habitats
for each JAX-WS deployment.
The file is a UTF-8 encoded text file, and processing is line-based. A line that starts with '#' is treated as a comment and ignored. Other lines are assumed to be in key=value,key=value,... format. =value portion is optional, and this can be used to design keys that are conceptually boolean. The same key can appear multiple times.s
The following keys are defined:
Key | Value | |||||||||
"class" | The fully qualified class name of the inhabitant. | |||||||||
"index" |
The index under which the inhabitant is registered.
Multiple values allowed. A value is of the form:
PRIMARYNAME[:SUBNAME] .
This is used for all kinds of indexing needs, including
Contract (where PRIMARYNAME is the FQCN of the contract name
and SUBNAME is the component name.)
|
Field Summary | |
---|---|
static String |
CLASS_KEY
Deprecated. |
static String |
DECORATED_TYPE
Deprecated. |
static String |
INDEX_KEY
Deprecated. |
static String |
METHOD_NAME
Deprecated. |
static String |
PARAMETERIZED_TYPE
Deprecated. |
static String |
PATH
Deprecated. |
static String |
QUALIFIER_KEY
Deprecated. |
static String |
TARGET_TYPE
Deprecated. Used as metadata for indentifying the type on which a InhabitantAnnotation
was annotated. |
Constructor Summary | |
---|---|
InhabitantsFile()
Deprecated. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PATH
public static final String CLASS_KEY
public static final String INDEX_KEY
public static final String QUALIFIER_KEY
public static final String PARAMETERIZED_TYPE
public static final String TARGET_TYPE
InhabitantAnnotation
was annotated.
public static final String METHOD_NAME
public static final String DECORATED_TYPE
Constructor Detail |
---|
public InhabitantsFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |