The implementation-created instance of an Application subclass may be
injected into resource classes and providers using
javax.ws.rs.core.Context.
In case any of the Application subclass methods or it's constructor
throws a RuntimeException, the deployment of the application SHOULD
be aborted with a failure.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Set | Returns: a set of root resource and provider classes. Returningnull
is equivalent to returning an empty set.Get a set of root resource, provider and |
| public Map | Returns: a map of custom application-wide properties. Returningnull
is equivalent to returning an empty set.Get a map of custom application-wide properties. |
| public Set | Returns: a set of root resource and provider instances. Returningnull
is equivalent to returning an empty set.Get a set of root resource, provider and |
| Application | back to summary |
|---|---|
| public Application() | |
| getClasses | back to summary |
|---|---|
| public Set Get a set of root resource, provider and
Implementations should warn about and ignore classes that do not
conform to the requirements of root resource or provider/feature classes.
Implementations should warn about and ignore classes for which
The default implementation returns an empty set. | |
| getProperties | back to summary |
|---|---|
| public Map Get a map of custom application-wide properties.
The returned properties are reflected in the application
The set of returned properties may be further extended or customized at deployment time
using container-specific features and deployment descriptors. For example, in a Servlet-based
deployment scenario, web application's The default implementation returns an empty set. | |
| getSingletons | back to summary |
|---|---|
| public Set Get a set of root resource, provider and Implementations should warn about and ignore classes that do not conform to the requirements of root resource or provider classes. Implementations should flag an error if the returned set includes more than one instance of the same class. Implementations MUST NOT modify the returned set. The default implementation returns an empty set. | |