org.surfnet.oaaas.config
Class DefaultPackagesResourceConfig

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.sun.jersey.api.core.ScanningResourceConfig
                  extended by com.sun.jersey.api.core.PackagesResourceConfig
                      extended by org.surfnet.oaaas.config.DefaultPackagesResourceConfig
All Implemented Interfaces:
com.sun.jersey.core.util.FeaturesAndProperties, com.sun.jersey.spi.container.ReloadListener

public class DefaultPackagesResourceConfig
extends com.sun.jersey.api.core.PackagesResourceConfig

PackagesResourceConfig that simply adds the relevant Resources to the configuration. This is not as much magic as the use of a PackageNamesScanner, but it this way much easier to override a resource and add this one instead of the default.


Field Summary
 
Fields inherited from class com.sun.jersey.api.core.PackagesResourceConfig
PROPERTY_PACKAGES
 
Fields inherited from class com.sun.jersey.api.core.ResourceConfig
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
 
Fields inherited from interface com.sun.jersey.core.util.FeaturesAndProperties
FEATURE_DISABLE_XML_SECURITY, FEATURE_FORMATTED, FEATURE_PRE_1_4_PROVIDER_PRECEDENCE, FEATURE_XMLROOTELEMENT_PROCESSING
 
Constructor Summary
DefaultPackagesResourceConfig()
          We need to "fool" the initialization process with at least one package name.
DefaultPackagesResourceConfig(String... packages)
           
 
Method Summary
 void init(com.sun.jersey.core.spi.scanning.Scanner scanner)
           
 
Methods inherited from class com.sun.jersey.api.core.ScanningResourceConfig
onReload, reload
 
Methods inherited from class com.sun.jersey.api.core.DefaultResourceConfig
getClasses, getExplicitRootResources, getFeature, getFeatures, getLanguageMappings, getMediaTypeMappings, getProperties, getProperty, getSingletons
 
Methods inherited from class com.sun.jersey.api.core.ResourceConfig
add, clone, getContainerRequestFilters, getContainerResponseFilters, getElements, getElements, getProviderClasses, getProviderSingletons, getResourceFilterFactories, getRootResourceClasses, getRootResourceSingletons, isProviderClass, isRootResourceClass, setPropertiesAndFeatures, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPackagesResourceConfig

public DefaultPackagesResourceConfig()
We need to "fool" the initialization process with at least one package name.


DefaultPackagesResourceConfig

public DefaultPackagesResourceConfig(String... packages)
Method Detail

init

public void init(com.sun.jersey.core.spi.scanning.Scanner scanner)
Overrides:
init in class com.sun.jersey.api.core.ScanningResourceConfig


Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.