com.sun.ws.rest.api.core
Class PackagesResourceConfig

java.lang.Object
  extended by com.sun.ws.rest.api.core.DefaultResourceConfig
      extended by com.sun.ws.rest.api.core.PackagesResourceConfig
All Implemented Interfaces:
ResourceConfig

public final class PackagesResourceConfig
extends DefaultResourceConfig

A mutable implementation of DefaultResourceConfig that dynamically searches for root resource classes given a set of package names.


Field Summary
static java.lang.String PROPERTY_PACKAGES
          The property value MUST be an instance String or String[].
 
Fields inherited from interface com.sun.ws.rest.api.core.ResourceConfig
FEATURE_CANONICALIZE_URI_PATH, FEATURE_IMPLICIT_VIEWABLES, FEATURE_MATCH_MATRIX_PARAMS, FEATURE_NORMALIZE_URI, FEATURE_REDIRECT, PROPERTY_DEFAULT_RESOURCE_PROVIDER_CLASS
 
Constructor Summary
PackagesResourceConfig(java.util.Map<java.lang.String,java.lang.Object> props)
           
PackagesResourceConfig(java.lang.String[] packages)
           
 
Method Summary
 
Methods inherited from class com.sun.ws.rest.api.core.DefaultResourceConfig
getFeature, getFeatures, getProperties, getProperty, getProviderClasses, getResourceClasses
 
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 paths that MUST be separated by ';'. Each path MUST be an absolute or relative directory, or a Jar file. The contents of a directory, including Java class files, jars files and sub-directories (recusively) are scanned. The Java class files of a jar file are scanned.

Root resource clases MUST be present in the Java class path.

See Also:
Constant Field Values
Constructor Detail

PackagesResourceConfig

public PackagesResourceConfig(java.lang.String[] packages)
Parameters:
packages - the array packages

PackagesResourceConfig

public PackagesResourceConfig(java.util.Map<java.lang.String,java.lang.Object> props)
Parameters:
props - the property bag that contains the property PROPERTY_PACKAGES.