org.apache.struts.chain.legacy
Class CatalogConfiguratorPlugIn

java.lang.Object
  extended byorg.apache.struts.chain.legacy.CatalogConfiguratorPlugIn
All Implemented Interfaces:
org.apache.struts.action.PlugIn

public class CatalogConfiguratorPlugIn
extends java.lang.Object
implements org.apache.struts.action.PlugIn

CatalogConfiguratorPlugIn parses the configuration resource specified by the path or resource property to configure the default Catalog registered with the CatalogFactory for this application.


Field Summary
private static org.apache.commons.logging.Log log
           
private  java.lang.String path
           
private  java.lang.String resource
           
 
Constructor Summary
CatalogConfiguratorPlugIn()
           
 
Method Summary
 void destroy()
          Clean up at web application shutdown.
 java.lang.String getPath()
          Return the context-relative resource path to load from.
 java.lang.String getResource()
          Return the classloader resource path to load from.
 void init(org.apache.struts.action.ActionServlet servlet, org.apache.struts.config.ModuleConfig config)
          Parse the configuration documents specified by the path or resource property to configure the default Catalog that is registered in the CatalogFactory instance for this application.
 void setPath(java.lang.String path)
          Set the context-relative resource path to load from.
 void setResource(java.lang.String resource)
          Set the classloader resource path to load from.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

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

path

private java.lang.String path

resource

private java.lang.String resource
Constructor Detail

CatalogConfiguratorPlugIn

public CatalogConfiguratorPlugIn()
Method Detail

getPath

public java.lang.String getPath()

Return the context-relative resource path to load from.


setPath

public void setPath(java.lang.String path)

Set the context-relative resource path to load from.

Parameters:
path - The new context relative resource path

getResource

public java.lang.String getResource()

Return the classloader resource path to load from.


setResource

public void setResource(java.lang.String resource)

Set the classloader resource path to load from.

Parameters:
resource - The new classloader resource path

destroy

public void destroy()

Clean up at web application shutdown.

Specified by:
destroy in interface org.apache.struts.action.PlugIn

init

public void init(org.apache.struts.action.ActionServlet servlet,
                 org.apache.struts.config.ModuleConfig config)
          throws javax.servlet.ServletException

Parse the configuration documents specified by the path or resource property to configure the default Catalog that is registered in the CatalogFactory instance for this application.

Specified by:
init in interface org.apache.struts.action.PlugIn
Throws:
javax.servlet.ServletException


Copyright ? 2003 - Apache Software Foundation