com.sun.ws.rest.api.core
Class ClasspathResourceConfig
java.lang.Object
com.sun.ws.rest.api.core.DefaultResourceConfig
com.sun.ws.rest.api.core.ClasspathResourceConfig
- All Implemented Interfaces:
- ResourceConfig
public final class ClasspathResourceConfig
- extends DefaultResourceConfig
A mutable implementation of DefaultResourceConfig
that dynamically
searches for root resource classes in the paths declared by the property
PROPERTY_CLASSPATH
. That property MUST be
included in the map of initial properties passed to the constructor.
Root resource classes MUST be present in the java class path.
Field Summary |
static java.lang.String |
PROPERTY_CLASSPATH
The property value MUST be an instance String or String[]. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_CLASSPATH
public static final java.lang.String PROPERTY_CLASSPATH
- 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
ClasspathResourceConfig
public ClasspathResourceConfig(java.lang.String[] paths)
- Parameters:
paths
- the array paths consisting of either jar files or
directories containing jar files for class files.
ClasspathResourceConfig
public ClasspathResourceConfig(java.util.Map<java.lang.String,java.lang.Object> props)
- Parameters:
props
- the property bag that contains the property
PROPERTY_CLASSPATH
.