...
The @Asset annotation is a marker annotation used by the Apache Wink runtime in order to identify an entity as an Asset.
Info | ||
---|---|---|
| ||
Refer to chapter 5 TBD for For more information on about Assets refer to section 5.9 Assets. |
@Asset Annotation Specification
...
Code Block | ||||
---|---|---|---|---|
| ||||
@Parent(BaseResource.class) @Path("service1") public class ResourceA { ... } |
Explanation
In the example, the user defined two resources: A ParentResource and ResourceA. ParentResource defines the @Path annotation to associate it with "services" URI. ResourceA defines the @Path annotation to associate it with "service1" URI and defines ParentResource to be its parent by specifying it in the @Parent annotation. In this case, the final URI path for ResourceA is "services/service1".