|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.ws.rs.core.Application
com.sun.jersey.api.core.ResourceConfig
com.sun.jersey.api.core.DefaultResourceConfig
com.sun.jersey.api.core.ScanningResourceConfig
com.sun.jersey.api.core.PackagesResourceConfig
public class PackagesResourceConfig
A mutable implementation of DefaultResourceConfig
that dynamically
searches for root resource and provider classes in a given a set of
declared package and in all (if any) sub-packages of those declared packages.
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_PACKAGES
The property value MUST be an instance String or String[]. |
Fields inherited from interface com.sun.jersey.core.util.FeaturesAndProperties |
---|
FEATURE_DISABLE_XML_SECURITY, FEATURE_FORMATTED, FEATURE_PRE_1_4_PROVIDER_PRECEDENCE, FEATURE_XMLROOTELEMENT_PROCESSING |
Constructor Summary | |
---|---|
PackagesResourceConfig(java.util.Map<java.lang.String,java.lang.Object> props)
Search for root resource classes declaring the packages as a property of ResourceConfig . |
|
PackagesResourceConfig(java.lang.String... packages)
Search for root resource classes declaring the packages as an array of package names. |
Method Summary |
---|
Methods inherited from class com.sun.jersey.api.core.ScanningResourceConfig |
---|
init, onReload, reload |
Methods inherited from class com.sun.jersey.api.core.DefaultResourceConfig |
---|
getClasses, getExplicitRootResources, getFeature, getFeatures, getLanguageMappings, getMediaTypeMappings, getProperties, getProperty, getSingletons |
Methods inherited from class com.sun.jersey.api.core.ResourceConfig |
---|
add, clone, getContainerRequestFilters, getContainerResponseFilters, getElements, getElements, getProviderClasses, getProviderSingletons, getResourceFilterFactories, getRootResourceClasses, getRootResourceSingletons, isProviderClass, isRootResourceClass, setPropertiesAndFeatures, validate |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_PACKAGES
Constructor Detail |
---|
public PackagesResourceConfig(java.lang.String... packages)
packages
- the array package names.public PackagesResourceConfig(java.util.Map<java.lang.String,java.lang.Object> props)
ResourceConfig
.
props
- the property bag that contains the property
PROPERTY_PACKAGES
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |