@Documented
@Retention(value=RUNTIME)
@Target(value=ANNOTATION_TYPE)
public @interface GenerateServiceFromMethod
The user-supplied annotation must have the following properties:
Decorator)ConfiguredGeneratedServiceName
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| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String[] |
advertisedContracts
The set of fully qualified class names of the advertised contracts that are to be used in
the generated descriptor.
|
java.lang.String |
implementation
This must have the fully qualified class name of the implementation that is to be used in the
generated descriptor
|
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
scope
The scope that the descriptor should take.
|
public abstract java.lang.String implementation
public abstract java.lang.String[] advertisedContracts
public abstract java.lang.String scope
Copyright © 2013 Oracle Corporation. All Rights Reserved.