@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 |
|---|---|
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 abstract String implementation
public abstract String[] advertisedContracts
public abstract String scope
Copyright © 2009-2016 Oracle Corporation. All Rights Reserved.