org.jmage
Class ApplicationContext

java.lang.Object
  extended by org.jmage.ApplicationContext
Direct Known Subclasses:
SystemApplicationContext, XmlApplicationContext

public abstract class ApplicationContext
extends java.lang.Object

ApplicationContext


Field Summary
protected static ApplicationContext applicationContext
           
protected  WorkerPool encoderManagerPool
           
protected  WorkerPool filterChainManagerPool
           
protected static org.apache.log4j.Logger log
           
protected static org.apache.log4j.PropertyConfigurator log4j
           
protected  java.util.Properties properties
           
protected  WorkerPool requestDispatcherPool
           
protected  WorkerPool resourceManagerPool
           
 
Constructor Summary
protected ApplicationContext()
          Use getContext instead.
 
Method Summary
 void addEncoderManager(EncoderManager encoderManager)
           
 void addFilterChainManager(FilterChainManager filterChainManager)
           
 void addRequestDispatcher(RequestDispatcher requestDispatcher)
           
 void addResourceManager(ResourceManager resourceManager)
           
 java.lang.Object get(java.lang.String key)
           
static ApplicationContext getContext()
           
 java.lang.String getProperty(java.lang.String key)
           
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
           
 EncoderManager obtainEncoderManager()
           
 FilterChainManager obtainFilterChainManager()
           
 RequestDispatcher obtainRequestDispatcher()
           
 ResourceManager obtainResourceManager()
           
 void put(java.lang.String key, java.lang.Object value)
           
 void putAll(java.util.Map properties)
           
 void releaseEncoderManager(EncoderManager encoderManager)
           
 void releaseFilterChainManager(FilterChainManager filterChainManager)
           
 void releaseRequestDispatcher(RequestDispatcher requestDispatcher)
           
 void releaseResourceManager(ResourceManager resourceManager)
           
 void setProperty(java.lang.String key, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

applicationContext

protected static ApplicationContext applicationContext

resourceManagerPool

protected WorkerPool resourceManagerPool

filterChainManagerPool

protected WorkerPool filterChainManagerPool

encoderManagerPool

protected WorkerPool encoderManagerPool

requestDispatcherPool

protected WorkerPool requestDispatcherPool

properties

protected java.util.Properties properties

log4j

protected static org.apache.log4j.PropertyConfigurator log4j

log

protected static org.apache.log4j.Logger log
Constructor Detail

ApplicationContext

protected ApplicationContext()
Use getContext instead.

Method Detail

getContext

public static ApplicationContext getContext()

addRequestDispatcher

public void addRequestDispatcher(RequestDispatcher requestDispatcher)
                          throws ConfigurationException
Throws:
ConfigurationException

obtainRequestDispatcher

public RequestDispatcher obtainRequestDispatcher()
                                          throws ConfigurationException
Throws:
ConfigurationException

releaseRequestDispatcher

public void releaseRequestDispatcher(RequestDispatcher requestDispatcher)
                              throws ConfigurationException
Throws:
ConfigurationException

addResourceManager

public void addResourceManager(ResourceManager resourceManager)
                        throws ConfigurationException
Throws:
ConfigurationException

obtainResourceManager

public ResourceManager obtainResourceManager()
                                      throws ConfigurationException
Throws:
ConfigurationException

releaseResourceManager

public void releaseResourceManager(ResourceManager resourceManager)
                            throws ConfigurationException
Throws:
ConfigurationException

addFilterChainManager

public void addFilterChainManager(FilterChainManager filterChainManager)
                           throws ConfigurationException
Throws:
ConfigurationException

obtainFilterChainManager

public FilterChainManager obtainFilterChainManager()
                                            throws ConfigurationException
Throws:
ConfigurationException

releaseFilterChainManager

public void releaseFilterChainManager(FilterChainManager filterChainManager)
                               throws ConfigurationException
Throws:
ConfigurationException

addEncoderManager

public void addEncoderManager(EncoderManager encoderManager)
                       throws ConfigurationException
Throws:
ConfigurationException

obtainEncoderManager

public EncoderManager obtainEncoderManager()
                                    throws ConfigurationException
Throws:
ConfigurationException

releaseEncoderManager

public void releaseEncoderManager(EncoderManager encoderManager)
                           throws ConfigurationException
Throws:
ConfigurationException

getProperty

public java.lang.String getProperty(java.lang.String key)

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultValue)

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)

put

public void put(java.lang.String key,
                java.lang.Object value)

putAll

public void putAll(java.util.Map properties)

get

public java.lang.Object get(java.lang.String key)


Copyright © 2004-2008 Sourceforge. All Rights Reserved.