public class ClasspathResourceConfig extends ScanningResourceConfig
DefaultResourceConfig
that dynamically
searches for root resource and provider classes in the files and directories
declared by the property PROPERTY_CLASSPATH
.
That property MUST be included in the map of initial properties passed to
the constructor.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_CLASSPATH
The property value MUST be an instance String or String[].
|
COMMON_DELIMITERS, FEATURE_CANONICALIZE_URI_PATH, FEATURE_DISABLE_WADL, FEATURE_IMPLICIT_VIEWABLES, FEATURE_MATCH_MATRIX_PARAMS, FEATURE_NORMALIZE_URI, FEATURE_REDIRECT, FEATURE_TRACE, FEATURE_TRACE_PER_REQUEST, PROPERTY_CONTAINER_NOTIFIER, PROPERTY_CONTAINER_REQUEST_FILTERS, PROPERTY_CONTAINER_RESPONSE_FILTERS, PROPERTY_DEFAULT_RESOURCE_COMPONENT_PROVIDER_FACTORY_CLASS, PROPERTY_LANGUAGE_MAPPINGS, PROPERTY_MEDIA_TYPE_MAPPINGS, PROPERTY_RESOURCE_FILTER_FACTORIES, PROPERTY_WADL_GENERATOR_CONFIG
FEATURE_DISABLE_XML_SECURITY, FEATURE_FORMATTED, FEATURE_PRE_1_4_PROVIDER_PRECEDENCE, FEATURE_XMLROOTELEMENT_PROCESSING
Constructor and Description |
---|
ClasspathResourceConfig() |
ClasspathResourceConfig(java.util.Map<java.lang.String,java.lang.Object> props) |
ClasspathResourceConfig(java.lang.String[] paths) |
init, onReload, reload
getClasses, getExplicitRootResources, getFeature, getFeatures, getLanguageMappings, getMediaTypeMappings, getProperties, getProperty, getSingletons
add, clone, getContainerRequestFilters, getContainerResponseFilters, getElements, getElements, getProviderClasses, getProviderSingletons, getResourceFilterFactories, getRootResourceClasses, getRootResourceSingletons, isProviderClass, isRootResourceClass, setPropertiesAndFeatures, validate
public static final java.lang.String PROPERTY_CLASSPATH
Root resource classes MUST be present in the Java class path.
public ClasspathResourceConfig()
public ClasspathResourceConfig(java.util.Map<java.lang.String,java.lang.Object> props)
props
- the property bag that contains the property
PROPERTY_CLASSPATH
.public ClasspathResourceConfig(java.lang.String[] paths)
paths
- the array paths consisting of either jar files or
directories containing jar files for class files.Copyright © 2016 Oracle Corporation. All Rights Reserved.