Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

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
titleReference

Refer For more information regarding the APP Service Document, refer to section 5.4 APP Service Document

...

The @Asset annotation is a marker annotation used by the Apache Wink runtime in order to identify an entity as an Asset.

Info
titleReference

Refer to chapter ‎5 TBD for For more information on about Assets refer to section 5.9 Assets.

@Asset Annotation Specification

...

Code Block
xml
xml
@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".