...
The purpose of the @Workspace annotation is to associate a "Collection Resource" with a workspace element and collection elements in an APP Service Document.
Info | ||
---|---|---|
| ||
Refer For more information regarding the APP Service Document, refer to section 5.4 APP Service Document . |
The workspaceTitle annotation parameter specifies the title of the workspace and the collectionTitle annotation parameter specifies the title of the collection.
...
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".