Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The workspaceTitle annotation parameter specifies the title of the workspace and the collectionTitle annotation parameter specifies the title of the collection.

@Workspace Annotation Specification

Value

Description

Mandatory

No

Target

Resource class

Parameters

Name

Type

 

workspaceTitle

String

 

collectionTitle

String

Example

@Workspace(workspaceTitle = "Title",
collectionTitle = "Collection") x

...

Info
titleReference

Refer to chapter ‎5 TBD for more information on Assets.

@Asset Annotation Specification

Value

Description

Mandatory

No

Target

Resource class

Parameters

None

Example

@Asset

@Scope Annotation

The JAX-RS specification defines the default lifecycle behavior for resources and providers, and the option for controlling the lifecycle through the javax.ws.rs.core.Application class.

Apache Wink provides the @Scope annotation to specify the lifecycle of a provider or resource.