|
||||||||||
| 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.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 |
| 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 | |
|---|---|
void |
reload()
Perform a new search for resource classes and provider classes. |
| Methods inherited from class com.sun.jersey.api.core.DefaultResourceConfig |
|---|
getClasses, getElements, getExplicitRootResources, getFeature, getFeatures, getLanguageMappings, getMediaTypeMappings, getProperties, getProperty, getSingletons |
| Methods inherited from class com.sun.jersey.api.core.ResourceConfig |
|---|
add, getContainerRequestFilters, getContainerResponseFilters, getProviderClasses, getProviderSingletons, getResourceFilterFactories, getRootResourceClasses, getRootResourceSingletons, isProviderClass, isRootResourceClass, setPropertiesAndFeatures, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, 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.| Method Detail |
|---|
public void reload()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||