public final class SessionManagerFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static SessionManager |
newInstance(SessionManagerProperties props)
Create a new SessionManager instance.
|
static SessionManager |
newInstance(SessionManagerProperties props,
java.lang.String className)
Create a new SessionManager instance.
|
static SessionManager |
newInstance(java.lang.String propertiesFile)
Create a new SessionManager instance.
|
public static SessionManager newInstance(java.lang.String propertiesFile) throws ConfigurationException, java.io.IOException
propertiesFile
- The location of a properties file to be used to
configure the new SessionManager. This method attempts to load a new
SessionManagerProperties object from this file before creating the
SessionManager.java.io.IOException
- The properties object was unable to load properties
from the named file. The exception may indicate the cause via
getCause().ConfigurationException
- The SessionManager was not successfully
configured based on the properties loaded from the given file. The
cause of the failure should be available via getCause().public static SessionManager newInstance(SessionManagerProperties props) throws ConfigurationException
props
- SessionManager properties that have already been loaded.
This method assumes that the properties are already loaded and therefore
does not attempt to do so.ConfigurationException
- The SessionManager was not successfully
configured based on the given properties. The cause of the failure
should be available via getCause().public static SessionManager newInstance(SessionManagerProperties props, java.lang.String className) throws FactoryConfigurationError, ConfigurationException
props
- SessionManager properties that have already been loaded.
This method assumes that the properties are already loaded and therefore
does not attempt to do so.ConfigurationException
- The SessionManager was not successfully
configured based on the given properties. The cause of the failure
should be available via getCause().FactoryConfigurationError