com.bea.content.cmis.rest
Class ClassListResourceConfig

java.lang.Object
  extended by javax.ws.rs.core.Application
      extended by com.sun.jersey.api.core.ResourceConfig
          extended by com.sun.jersey.api.core.DefaultResourceConfig
              extended by com.bea.content.cmis.rest.ClassListResourceConfig

public class ClassListResourceConfig
extends com.sun.jersey.api.core.DefaultResourceConfig

Resource to configure a REST service from a list of Resource and Provider class names (as an init-param to the Jersey ServletContainer servlet). The servlet init-param com.bea.content.cmis.rest.classes should be configured with a list of resource and provider class names. The names must be separated by ';' (semi-colon). Base Resource classes will be configured in DefaultResourceConfig.getClasses() to have a per-Request lifecycle. Provider classes will be instantiated and configured in DefaultResourceConfig.getSingletons() to have a singleton lifecycle. This default lifecycle can be controled by the class if it is annotated with either Singleton or PerRequest. The lifecycle can further be forced in the init-param by appending '@Singleton' or '@PerRequest' to the classname.


Field Summary
static String PROPERTY_CLASSES
           
 
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_RESOURCE_FILTER_FACTORIES, PROPERTY_WADL_GENERATOR_CONFIG
 
Constructor Summary
ClassListResourceConfig(Map<String,Object> props)
          Search for root resource classes declaring the class names as a property of ResourceConfig.
 
Method Summary
 
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_CLASSES

public static final String PROPERTY_CLASSES
See Also
Constants Summary
Constructor Detail

ClassListResourceConfig

public ClassListResourceConfig(Map<String,Object> props)
Search for root resource classes declaring the class names as a property of ResourceConfig.

Parameters
props - the property bag that contains the property PROPERTY_CLASSES.


Copyright © 2011, Oracle. All rights reserved.