public class ConfigurationStore extends Object
Note that becuase this doesn't tie directly into the rest of the code, you are still free to design your own run-time configuration mechanisms. This is simply provided as a convenience, and so that all programmers can start from a common point.
Modifier and Type | Field and Description |
---|---|
static String |
PDP_CONFIG_PROPERTY
Property used to specify the configuration file.
|
Constructor and Description |
---|
ConfigurationStore()
Default constructor.
|
ConfigurationStore(File configFile)
Constructor that explicitly specifies the configuration file to load.
|
Modifier and Type | Method and Description |
---|---|
AttributeFactory |
getAttributeFactory(String name)
Returns the attribute factory with the given name.
|
CombiningAlgFactory |
getCombiningAlgFactory(String name)
Returns the combiningAlg factory with the given name.
|
AttributeFactory |
getDefaultAttributeFactory()
Returns the default attribute factory.
|
CombiningAlgFactory |
getDefaultCombiningAlgFactory()
Returns the default combiningAlg factory.
|
FunctionFactoryProxy |
getDefaultFunctionFactoryProxy()
Returns the default function factory proxy.
|
PDPConfig |
getDefaultPDPConfig()
Returns the default PDP configuration.
|
FunctionFactoryProxy |
getFunctionFactoryProxy(String name)
Returns the function factory proxy with the given name.
|
PDPConfig |
getPDPConfig(String name)
Returns the PDP configuration with the given name.
|
Set |
getSupportedAttributeFactories()
Returns a set of identifiers representing each attribute factory
available.
|
Set |
getSupportedCombiningAlgFactories()
Returns a set of identifiers representing each combiningAlg factory
available.
|
Set |
getSupportedFunctionFactories()
Returns a set of identifiers representing each function factory proxy
available.
|
Set |
getSupportedPDPConfigurations()
Returns a set of identifiers representing each PDP configuration
available.
|
void |
registerAttributeFactories()
Registers all the supported factories with the given identifiers.
|
void |
registerCombiningAlgFactories()
Registers all the supported factories with the given identifiers.
|
void |
registerFunctionFactories()
Registers all the supported factories with the given identifiers.
|
void |
useDefaultFactories()
Uses the default configuration to re-set the default factories used
by the system (attribute, combining algorithm, and function).
|
public static final String PDP_CONFIG_PROPERTY
public ConfigurationStore() throws ParsingException
PDP_CONFIG_PROPERTY
property to load the configuration.
If the property isn't set, if it names a file that can't be accessed,
or if the file is invalid, then an exception is thrown.ParsingException
- if anything goes wrong during the parsing
of the configuration file, the class loading,
or the factory and pdp setuppublic ConfigurationStore(File configFile) throws ParsingException
ParsingException
- if anything goes wrong during the parsing
of the configuration file, the class loading,
or the factory and pdp setuppublic PDPConfig getDefaultPDPConfig() throws UnknownIdentifierException
UnknownIdentifierException
- if there is no default configpublic PDPConfig getPDPConfig(String name) throws UnknownIdentifierException
UnknownIdentifierException
- if the name is unknownpublic Set getSupportedPDPConfigurations()
Set
of String
spublic AttributeFactory getDefaultAttributeFactory()
public AttributeFactory getAttributeFactory(String name) throws UnknownIdentifierException
UnknownIdentifierException
- if the name is unknownpublic Set getSupportedAttributeFactories()
Set
of String
spublic void registerAttributeFactories()
public CombiningAlgFactory getDefaultCombiningAlgFactory()
public CombiningAlgFactory getCombiningAlgFactory(String name) throws UnknownIdentifierException
UnknownIdentifierException
- if the name is unknownpublic Set getSupportedCombiningAlgFactories()
Set
of String
spublic void registerCombiningAlgFactories()
public FunctionFactoryProxy getDefaultFunctionFactoryProxy()
public FunctionFactoryProxy getFunctionFactoryProxy(String name) throws UnknownIdentifierException
UnknownIdentifierException
- if the name is unknownpublic Set getSupportedFunctionFactories()
Set
of String
spublic void registerFunctionFactories()
public void useDefaultFactories()
Copyright © 2023 JBoss by Red Hat. All rights reserved.