|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Retention(value=RUNTIME) @Target(value=TYPE) public @interface Service
Marks an interface or abstract class that is an extension point via services annotation framework.
Optional Element Summary | |
---|---|
String |
combineMethod
The name of the static combine method that is used by createService method to
combine multiple service implementations into one. |
String |
upgradeMethod
The name of the static upgrade method that is used by createService method to
upgrade instances of this service to a more recent version of service interface that
supersedes this legacy interface. |
public abstract String combineMethod
createService
method to
combine multiple service implementations into one. This method should have
a single List
arguments, receive a list of service instances to combine in
order
.
If combine method is not defined, then createService
return the first instance in order.
public abstract String upgradeMethod
createService
method to
upgrade instances of this service to a more recent version of service interface that
supersedes this legacy interface.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |