Parser
instead@Deprecated public class InfinispanConfiguration extends Object implements XmlConfigurationParser, JAXBUnmarshallable
Modifier and Type | Field and Description |
---|---|
static String |
SCHEMA_SYSTEM_PROPERTY
Deprecated.
|
static String |
SCHEMA_URL_SYSTEM_PROPERTY
Deprecated.
|
static String |
SKIP_TOKEN_REPLACEMENT
Deprecated.
|
static String |
VALIDATING_SYSTEM_PROPERTY
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ConfigurationBeanVisitor v)
Deprecated.
|
static InputStream |
findSchemaInputStream()
Deprecated.
|
static InputStream |
findSchemaInputStream(String localPathToSchema)
Deprecated.
|
protected static JAXBContext |
getJAXBContext()
Deprecated.
Returns the JAXB context that may be used to read and write Infinispan configurations.
|
static InfinispanConfiguration |
newInfinispanConfiguration(InputStream config)
Deprecated.
Factory method to create an instance of Infinispan configuration.
|
static InfinispanConfiguration |
newInfinispanConfiguration(InputStream config,
InputStream schema)
Deprecated.
Factory method to create an instance of Infinispan configuration.
|
static InfinispanConfiguration |
newInfinispanConfiguration(InputStream config,
InputStream schema,
ConfigurationBeanVisitor cbv)
Deprecated.
Factory method to create an instance of Infinispan configuration.
|
static InfinispanConfiguration |
newInfinispanConfiguration(Reader config)
Deprecated.
Factory method to create an instance of Infinispan configuration.
|
static InfinispanConfiguration |
newInfinispanConfiguration(Reader config,
InputStream schema)
Deprecated.
Factory method to create an instance of Infinispan configuration.
|
static InfinispanConfiguration |
newInfinispanConfiguration(Reader config,
InputStream schema,
ConfigurationBeanVisitor cbv)
Deprecated.
Factory method to create an instance of Infinispan configuration.
|
static InfinispanConfiguration |
newInfinispanConfiguration(String configFileName,
ClassLoader cl)
Deprecated.
Factory method to create an instance of Infinispan configuration.
|
static InfinispanConfiguration |
newInfinispanConfiguration(String configFileName,
String schemaFileName,
ClassLoader cl)
Deprecated.
Factory method to create an instance of Infinispan configuration.
|
static InfinispanConfiguration |
newInfinispanConfiguration(String configFileName,
String schemaFileName,
ConfigurationBeanVisitor cbv,
ClassLoader cl)
Deprecated.
Factory method to create an instance of Infinispan configuration.
|
Configuration |
parseDefaultConfiguration()
Deprecated.
Parses the default template configuration.
|
GlobalConfiguration |
parseGlobalConfiguration()
Deprecated.
GlobalConfiguration would also have a reference to the template default configuration, accessible via
org.infinispan.config.GlobalConfiguration#getDefaultConfiguration()
This is typically used to configure a DefaultCacheManager |
Map<String,Configuration> |
parseNamedConfigurations()
Deprecated.
Parses and retrieves configuration overrides for named caches.
|
static String |
resolveSchemaPath()
Deprecated.
|
String |
toXmlString()
Deprecated.
Converts this configuration instance to an XML representation containing the current settings.
|
protected static String |
toXmlString(Object compatibleConfigurationInstance)
Deprecated.
Converts an instance of GlobalConfiguration, Configuration or InfinispanConfiguration to
its XML representation.
|
void |
willUnmarshall(Object parent)
Deprecated.
Indicates that this element is about to be unmarshalled from the XML source that was processed.
|
public static final String VALIDATING_SYSTEM_PROPERTY
public static final String SKIP_TOKEN_REPLACEMENT
public static final String SCHEMA_SYSTEM_PROPERTY
public static final String SCHEMA_URL_SYSTEM_PROPERTY
public static InfinispanConfiguration newInfinispanConfiguration(String configFileName, String schemaFileName, ClassLoader cl) throws IOException
configFileName
- configuration file nameschemaFileName
- schema file nameIOException
- if there are any issues creating InfinispanConfiguration objectpublic static InfinispanConfiguration newInfinispanConfiguration(String configFileName, String schemaFileName, ConfigurationBeanVisitor cbv, ClassLoader cl) throws IOException
configFileName
- configuration file nameschemaFileName
- schema file namecbv
- configuration bean visitor passed to constructed InfinispanConfigurationIOException
- if there are any issues creating InfinispanConfiguration objectpublic static InfinispanConfiguration newInfinispanConfiguration(String configFileName, ClassLoader cl) throws IOException
configFileName
- configuration file nameIOException
- if there are any issues creating InfinispanConfiguration objectpublic static InfinispanConfiguration newInfinispanConfiguration(InputStream config) throws IOException
config
- configuration input streamIOException
- if there are any issues creating InfinispanConfiguration objectpublic static InfinispanConfiguration newInfinispanConfiguration(Reader config) throws IOException
config
- configuration readerIOException
- if there are any issues creating InfinispanConfiguration objectpublic static InfinispanConfiguration newInfinispanConfiguration(InputStream config, InputStream schema) throws IOException
config
- configuration input streamschema
- schema inputstreamIOException
- if there are any issues creating InfinispanConfiguration objectpublic static InfinispanConfiguration newInfinispanConfiguration(Reader config, InputStream schema) throws IOException
config
- configuration readerschema
- schema inputstreamIOException
- if there are any issues creating InfinispanConfiguration objectpublic static InfinispanConfiguration newInfinispanConfiguration(Reader config, InputStream schema, ConfigurationBeanVisitor cbv) throws IOException
config
- configuration readerschema
- schema inputstreamcbv
- configuration bean visitor passed to constructed InfinispanConfigurationIOException
- if there are any issues creating InfinispanConfiguration objectpublic static InfinispanConfiguration newInfinispanConfiguration(InputStream config, InputStream schema, ConfigurationBeanVisitor cbv) throws IOException
config
- configuration input streamschema
- schema inputstreamcbv
- configuration bean visitor passed to constructed InfinispanConfigurationIOException
- if there are any issues creating InfinispanConfiguration objectprotected static JAXBContext getJAXBContext() throws JAXBException
JAXBException
- In case of the creation of the context failed.protected static String toXmlString(Object compatibleConfigurationInstance)
compatibleConfigurationInstance
- a configuration instance that support XML marshaling.public static InputStream findSchemaInputStream()
public static InputStream findSchemaInputStream(String localPathToSchema)
public static String resolveSchemaPath()
public void accept(ConfigurationBeanVisitor v)
public Configuration parseDefaultConfiguration() throws ConfigurationException
XmlConfigurationParser
parseDefaultConfiguration
in interface XmlConfigurationParser
ConfigurationException
- if there is a problem parsing the configuration XMLpublic GlobalConfiguration parseGlobalConfiguration()
XmlConfigurationParser
org.infinispan.config.GlobalConfiguration#getDefaultConfiguration()
This is typically used to configure a DefaultCacheManager
parseGlobalConfiguration
in interface XmlConfigurationParser
public Map<String,Configuration> parseNamedConfigurations() throws ConfigurationException
XmlConfigurationParser
parseNamedConfigurations
in interface XmlConfigurationParser
ConfigurationException
- if there is a problem parsing the configuration XMLpublic void willUnmarshall(Object parent)
JAXBUnmarshallable
willUnmarshall
in interface JAXBUnmarshallable
parent
- parent componentpublic String toXmlString()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.