|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Retention(value=RUNTIME) @Target(value=ANNOTATION_TYPE) public @interface GenerateServiceFromMethod
This annotation is put on user-supplied annotations in order to cause the hk2-inhabitant-generator tool to create descriptors with certain properties.
The user-supplied annotation must have the following properties:
Decorator
)Configured
GeneratedServiceName
When a method on an Configured
interface has a user-supplied annotation
that is annotated with this interface the hk2-inhabitant-generator will generate
a service descriptor with the following properties:
GeneratedServiceName
it will be the name in the descriptorConfigured
class with key PARENT_CONFGIURED
If a class is annotated with a user-supplied annotation marked with this annotation then that
class *must* also be annotated with the Decorate
annotation. The Decorate
annotation
will provide the values for several of the fields as described below.
When a class on an Configured
interface has a user-supplied annotation
that is annotated with this interface the hk2-inhabitant-generator will generate
a service descriptor with the following properties:
GeneratedServiceName
from the user-supplied annotation defined by
the Decorate#with()
methodDecorate#targetType()
value with key METHOD_ACTUALDecorate#methodName()
value with key METHOD_NAMEConfigured
class with key PARENT_CONFGIURED
Required Element Summary | |
---|---|
String[] |
advertisedContracts
The set of fully qualified class names of the advertised contracts that are to be used in the generated descriptor. |
String |
implementation
This must have the fully qualified class name of the implementation that is to be used in the generated descriptor |
Optional Element Summary | |
---|---|
String |
scope
The scope that the descriptor should take. |
Element Detail |
---|
public abstract String implementation
public abstract String[] advertisedContracts
public abstract String scope
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |