Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.jersey.api.core
Class PackagesResourceConfig

    java.lang.Object
      javax.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

extends DefaultResourceConfig

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.

Author:
  Paul.Sandoz@Sun.Com

Field Summary
`static java.lang.String` | `PROPERTY_PACKAGES` The property value MUST be an instance String or String[].

Fields inherited from class com.sun.jersey.api.core.ResourceConfig
`FEATURE_CANONICALIZE_URI_PATH, FEATURE_IMPLICIT_VIEWABLES, FEATURE_MATCH_MATRIX_PARAMS, FEATURE_NORMALIZE_URI, FEATURE_REDIRECT, PROPERTY_CONTAINER_NOTIFIER, PROPERTY_CONTAINER_REQUEST_FILTERS, PROPERTY_CONTAINER_RESPONSE_FILTERS, PROPERTY_DEFAULT_RESOURCE_COMPONENT_PROVIDER_FACTORY_CLASS, PROPERTY_WADL_GENERATOR_CONFIG`

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, getFeature, getFeatures, getLanguageMappings, getMediaTypeMappings, getProperties, getProperty, getSingletons, setPropertiesAndFeatures`

Methods inherited from class com.sun.jersey.api.core.ResourceConfig
`getProviderClasses, getProviderSingletons, getRootResourceClasses, getRootResourceSingletons, isProviderClass, isRootResourceClass, validate`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### PROPERTY_PACKAGES

    public static final java.lang.String PROPERTY_PACKAGES

  The property value MUST be an instance String or String[]. Each String instance represents one or more package names that MUST be separated by ';'.

  See Also:
    Constant Field Values

Constructor Detail

### PackagesResourceConfig

    public PackagesResourceConfig(java.lang.String... packages)

  Search for root resource classes declaring the packages as an array of package names.

  Parameters:
    `packages` - the array package names.

### PackagesResourceConfig

    public PackagesResourceConfig(java.util.Map<java.lang.String,java.lang.Object> props)

  Search for root resource classes declaring the packages as a property of `ResourceConfig`.

  Parameters:
    `props` - the property bag that contains the property `PROPERTY_PACKAGES`.

Method Detail

### reload

    public void reload()

  Perform a new search for resource classes and provider classes.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008 Sun Microsystems, Inc. All Rights Reserved.