Versions Compared

Key

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

...

Apache Wink extends the javax.ws.rs.core.Application class with the org.apache.wink.common.WinkApplication class in order to provide the Dynamic Resources and the Priorities functionality.

Info
titleReference

Refer to sections ‎TBD and ‎TBD for more information on Dynamic Resources and Priorities.

An application may provide an instance of the Apache Wink Application to the Apache Wink runtime as specified by the JAX-RS specification.

...

A Dynamic Resource is a resource class that implements the comorg.hpapache.symphonywink.server.DynamicResource interface or extends the comorg.hpapache.symphonywink.server.AbstractDynamicResource convenience class.

A Dynamic Resource is not registered in Apache Wink through the Application#getClasses() method or the Application#getSignletons() method, since the same class can be used for multiple resources.
In order to register Dynamic Resources in the system, the SymphonyApplication#getInstancesWinkApplication#getInstances()method must be used.

Info
titleReference

Refer to section TBD for more information about Registration.

...

In order to provide a custom properties file, the application should define the symphonywink.propertiesLocation init-param in the Apache Wink Servlet definition.

...

RegistrationApache Wink provides several APIs for Runtime Registration. The APIs appear in the comorg.hpapache.symphonywink.server.utils.RegistrationUtils class. The most important method is the one that registers an instance of the javax.ws.rs.core.Application class

...

In order to customize these mappings the application should create a instance of a comorg.hpapache.symphonywink.server.internal.MediaTypeMapper class and set it on the DeploymentConfiguration instance.

...