org.openxri.factories
Class ServerConfigFactory

java.lang.Object
  extended by org.openxri.factories.ServerConfigFactory

public class ServerConfigFactory
extends java.lang.Object

Can construct an appropriate ServerConfig object based on a map (which at a minimum must contain a class name for the ServerConfig implementation).

Author:
=peacekeeper

Field Summary
static java.lang.String DEFAULT_SERVER_CONFIG_CLASS
           
static java.lang.String SERVER_CONFIG_CLASS
           
 
Method Summary
static java.lang.ClassLoader getClassLoader()
           
static ServerConfig getSingleton()
          Get the server config implementation and hope it's initialized already.
static ServerConfig initSingleton(javax.servlet.FilterConfig filterConfig)
          Construct the concrete implementation of the ServerConfig interface, based on a filter config.
static ServerConfig initSingleton(javax.servlet.ServletConfig servletConfig)
          Construct the concrete implementation of the ServerConfig interface, based on a servlet config.
static ServerConfig initSingleton(javax.servlet.ServletContext servletContext, java.util.Properties properties)
          Construct the concrete implementation of the ServerConfig interface, based on a servlet context and properties.
static void setClassLoader(java.lang.ClassLoader classLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER_CONFIG_CLASS

public static final java.lang.String SERVER_CONFIG_CLASS
See Also:
Constant Field Values

DEFAULT_SERVER_CONFIG_CLASS

public static final java.lang.String DEFAULT_SERVER_CONFIG_CLASS
Method Detail

initSingleton

public static ServerConfig initSingleton(javax.servlet.ServletContext servletContext,
                                         java.util.Properties properties)
                                  throws java.lang.Exception
Construct the concrete implementation of the ServerConfig interface, based on a servlet context and properties.

Throws:
java.lang.Exception

initSingleton

public static ServerConfig initSingleton(javax.servlet.ServletConfig servletConfig)
                                  throws java.lang.Exception
Construct the concrete implementation of the ServerConfig interface, based on a servlet config.

Throws:
java.lang.Exception

initSingleton

public static ServerConfig initSingleton(javax.servlet.FilterConfig filterConfig)
                                  throws java.lang.Exception
Construct the concrete implementation of the ServerConfig interface, based on a filter config.

Throws:
java.lang.Exception

getSingleton

public static ServerConfig getSingleton()
Get the server config implementation and hope it's initialized already.


getClassLoader

public static java.lang.ClassLoader getClassLoader()

setClassLoader

public static void setClassLoader(java.lang.ClassLoader classLoader)


Copyright © 2005-2012. All Rights Reserved.