com.devexperts.services
Annotation Type Service


@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.
 

combineMethod

public abstract String combineMethod
The name of the static combine method that is used by 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.

Default:
""

upgradeMethod

public abstract 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.

Default:
""


Copyright © 2013 Devexperts. All Rights Reserved.