|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.semiramis.policyManager.pdp.impl.ContextHandlerFactory
public class ContextHandlerFactory
Factory for ContextHandler
objects.
The implementation class of objects returned by the factory can be configured
using the property name ContextHandler.CONTEXT_HANDLER_CLASS_PROPERTY
.
Field Summary | |
---|---|
static java.lang.String |
CONTEXT_HANDLER_CONFIGURATION_FILE
Name of the default configuration file for the ContextHandler |
static java.lang.Class |
DEFAULT_CONTEXT_HANDLER_CLASS
|
Constructor Summary | |
---|---|
ContextHandlerFactory()
|
Method Summary | |
---|---|
static ContextHandler |
createContextHandler()
Creates a new ContextHandler basing on the default configuration
file |
static ContextHandler |
createContextHandler(java.util.Properties properties)
Creates a new ContextHandler basing on the custom configuration
object provided |
static ContextHandler |
createContextHandler(java.lang.String configurationFileName)
Creates a new ContextHandler basing on the custom configuration
file provided |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONTEXT_HANDLER_CONFIGURATION_FILE
public static final java.lang.Class DEFAULT_CONTEXT_HANDLER_CLASS
Constructor Detail |
---|
public ContextHandlerFactory()
Method Detail |
---|
public static ContextHandler createContextHandler() throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException, ConfigurationException, java.io.IOException, java.net.URISyntaxException
ContextHandler
basing on the default configuration
file
ContextHandler
java.lang.ClassNotFoundException
- if the ContextHandler
implementation class cannot be
found
java.lang.IllegalAccessException
- if the ContextHandler
implementation class cannot be
instantiated
java.lang.InstantiationException
- if the ContextHandler
implementation class cannot be
instantiated
ConfigurationException
- if an exception occurs in configuring the
ContextHandler
implementation
java.net.URISyntaxException
- if the resource name is not well formed
java.io.IOException
- if the load operation failspublic static ContextHandler createContextHandler(java.lang.String configurationFileName) throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException, ConfigurationException, java.io.IOException, java.net.URISyntaxException
ContextHandler
basing on the custom configuration
file provided
configurationFileName
- the configuration file name
ContextHandler
java.lang.ClassNotFoundException
- if the ContextHandler
implementation class cannot be
found
java.lang.IllegalAccessException
- if the ContextHandler
implementation class cannot be
instantiated
java.lang.InstantiationException
- if the ContextHandler
implementation class cannot be
instantiated
ConfigurationException
- if an exception occurs in configuring the
ContextHandler
implementation
java.net.URISyntaxException
- if the resource name is not well formed
java.io.IOException
- if the load operation fails
java.lang.Exception
- if an exception occurs when loading the propertiespublic static ContextHandler createContextHandler(java.util.Properties properties) throws ConfigurationException
ContextHandler
basing on the custom configuration
object provided
properties
- the custom configuration properties object
ContextHandler
java.lang.ClassNotFoundException
- if the ContextHandler
implementation class cannot be
found
java.lang.IllegalAccessException
- if the ContextHandler
implementation class cannot be
instantiated
java.lang.InstantiationException
- if the ContextHandler
implementation class cannot be
instantiated
ConfigurationException
- if an exception occurs in configuring the
ContextHandler
implementation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |