|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Service
The @Service annotation is used on a component implementation class to specify the SCA services offered by the implementation. The class need not be declared as implementing all of the interfaces implied by the services, but all methods of the service interfaces must be present. A class used as the implementation of a service is not required to have a @Service annotation. If a class has no @Service annotation, then the rules determining which services are offered and what interfaces those services have are determined by the specific implementation type.
Required Element Summary | |
---|---|
java.lang.Class<?>[] |
value
The value is an array of interface or class objects that should be exposed as services by this component. |
Optional Element Summary | |
---|---|
java.lang.String[] |
names
The value is an array of strings which are used as the service names for each of the interfaces declared in the value array. |
Element Detail |
---|
public abstract java.lang.Class<?>[] value
public abstract java.lang.String[] names
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |