@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 | Fields and Description |
|---|---|
static String |
METHOD_ACTUAL
This is the key in the metadata that will contain the actual type of the List return type of the
method where the user-supplied annotation has been placed
|
static String |
METHOD_NAME
This is the key in the metadata that will contain the name of the method where the user-supplied
annotation has been placed
|
static String |
PARENT_CONFIGURED
This is the key in the metadata that will contain the fully qualified class name of the class marked
Configured that contains this annotation |
| Modifier and Type | Required Element and Description |
|---|---|
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
|
public static final String METHOD_ACTUAL
public static final String METHOD_NAME
public static final String PARENT_CONFIGURED
Configured that contains this annotationpublic abstract String implementation
public abstract String[] advertisedContracts
public abstract String scope
Copyright © 2019. All rights reserved.