@Retention(value=RUNTIME) @Target(value=TYPE) public @interface Service
ServiceName| Modifier and Type | Required Element and Description | 
|---|---|
| Class<?> | valueThe domain type that provides the implementations for the methods defined
 in the RequestContext. | 
| Modifier and Type | Optional Element and Description | 
|---|---|
| Class<? extends ServiceLocator> | locatorAn optional  ServiceLocatorthat provides instances of service
 objects used when invoking instance methods on the type returned byvalue(). | 
public abstract Class<?> value
public abstract Class<? extends ServiceLocator> locator
ServiceLocator that provides instances of service
 objects used when invoking instance methods on the type returned by
 value().Copyright © 2016. All rights reserved.