org.apache.commons.chain.web
Class ChainResources

java.lang.Object
  extended by org.apache.commons.chain.web.ChainResources

final class ChainResources
extends java.lang.Object

Utility methods for loading class loader and web application resources to configure a Catalog. These methods are shared between ChainListener and ChainServlet.

Author:
Craig R. McClanahan, Ted Husted

Field Summary
private static org.apache.commons.logging.Log log
          The Log instance for this class.
 
Constructor Summary
ChainResources()
           
 
Method Summary
(package private) static void parseClassResources(Catalog catalog, java.lang.String resources, ConfigParser parser)
          Deprecated. Use the variant that does not take a catalog, on a configuration resource containing "catalog" element(s)
(package private) static void parseClassResources(java.lang.String resources, ConfigParser parser)
          Parse the specified class loader resources.
(package private) static void parseWebResources(Catalog catalog, javax.servlet.ServletContext context, java.lang.String resources, ConfigParser parser)
          Deprecated. Use the variant that does not take a catalog, on a configuration resource containing "catalog" element(s)
(package private) static void parseWebResources(javax.servlet.ServletContext context, java.lang.String resources, ConfigParser parser)
          Parse the specified web application resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

The Log instance for this class.

Constructor Detail

ChainResources

ChainResources()
Method Detail

parseClassResources

static void parseClassResources(java.lang.String resources,
                                ConfigParser parser)

Parse the specified class loader resources.

Parameters:
resources - Comma-delimited list of resources (or null)
parser - ConfigParser to use for parsing

parseClassResources

static void parseClassResources(Catalog catalog,
                                java.lang.String resources,
                                ConfigParser parser)
Deprecated. Use the variant that does not take a catalog, on a configuration resource containing "catalog" element(s)

Parse the specified class loader resources.

Parameters:
catalog - Catalog we are populating
resources - Comma-delimited list of resources (or null)
parser - ConfigParser to use for parsing

parseWebResources

static void parseWebResources(javax.servlet.ServletContext context,
                              java.lang.String resources,
                              ConfigParser parser)

Parse the specified web application resources.

Parameters:
context - ServletContext for this web application
resources - Comma-delimited list of resources (or null)
parser - ConfigParser to use for parsing

parseWebResources

static void parseWebResources(Catalog catalog,
                              javax.servlet.ServletContext context,
                              java.lang.String resources,
                              ConfigParser parser)
Deprecated. Use the variant that does not take a catalog, on a configuration resource containing "catalog" element(s)

Parse the specified web application resources.

Parameters:
catalog - Catalog we are populating
context - ServletContext for this web application
resources - Comma-delimited list of resources (or null)
parser - ConfigParser to use for parsing