public class JaxrsApplication
extends javax.ws.rs.core.Application
The REST application based on JAX-RS standard.
Constructor and Description |
---|
JaxrsApplication(ServletConfig servletConfig)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addSysProvider(java.util.Set<java.lang.Class<?>> resourceClzs)
Loads the system provider.
|
java.util.Set<java.lang.Class<?>> |
getClasses()
Gets collection of root resource and provider class.
|
protected java.util.Set<java.lang.Class<?>> |
loadClassByComponents()
Loads resources according to business components.
|
static org.glassfish.jersey.server.ResourceConfig |
toJerseryResourceConfig(javax.ws.rs.core.Application application) |
public JaxrsApplication(@Context ServletConfig servletConfig)
The constructor.
Used to construct REST application based on JAX-RS by configuring servlet info.
servletConfig
- ServletConfigpublic java.util.Set<java.lang.Class<?>> getClasses()
Gets collection of root resource and provider class.
The default life cycle of root resource is each request, the life cycle of provider is one instance.
getClasses
in class javax.ws.rs.core.Application
public static org.glassfish.jersey.server.ResourceConfig toJerseryResourceConfig(javax.ws.rs.core.Application application)
protected java.util.Set<java.lang.Class<?>> loadClassByComponents()
Loads resources according to business components.
protected void addSysProvider(java.util.Set<java.lang.Class<?>> resourceClzs)
resourceClzs
-