public class ConfiguratorFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JAXP_MISSING_ERROR_MSG |
Modifier | Constructor and Description |
---|---|
protected |
ConfiguratorFactory() |
Modifier and Type | Method and Description |
---|---|
static InputStream |
getConfigStream(File file) |
static InputStream |
getConfigStream(Object properties) |
static InputStream |
getConfigStream(String properties)
Returns a JGroups XML configuration InputStream based on the provided properties string.
|
static InputStream |
getConfigStream(URL url) |
static ProtocolStackConfigurator |
getStackConfigurator(Element element)
Returns a protocol stack configurator based on the XML configuration provided by the specified XML element.
|
static ProtocolStackConfigurator |
getStackConfigurator(File file)
Returns a protocol stack configurator based on the XML configuration provided by the specified File.
|
static ProtocolStackConfigurator |
getStackConfigurator(InputStream input) |
static ProtocolStackConfigurator |
getStackConfigurator(String properties)
Returns a protocol stack configurator based on the provided properties string.
|
static ProtocolStackConfigurator |
getStackConfigurator(URL url)
Returns a protocol stack configurator based on the XML configuration provided at the specified URL.
|
static void |
substituteVariables(ProtocolStackConfigurator configurator)
Replace variables of the form ${var:default} with the getProperty(var,
default)
|
public static final String JAXP_MISSING_ERROR_MSG
public static ProtocolStackConfigurator getStackConfigurator(File file) throws Exception
file
- a File with a JGroups XML configuration.ProtocolStackConfigurator
containing the stack configuration.Exception
- if problems occur during the configuration of the protocol stack.public static ProtocolStackConfigurator getStackConfigurator(InputStream input) throws Exception
Exception
public static ProtocolStackConfigurator getStackConfigurator(URL url) throws Exception
url
- a URL pointing to a JGroups XML configuration.ProtocolStackConfigurator
containing the stack configuration.Exception
- if problems occur during the configuration of the protocol stack.public static ProtocolStackConfigurator getStackConfigurator(Element element) throws Exception
element
- a XML element containing a JGroups XML configuration.ProtocolStackConfigurator
containing the stack configuration.Exception
- if problems occur during the configuration of the protocol stack.public static ProtocolStackConfigurator getStackConfigurator(String properties) throws Exception
properties
- an old style property string, a string representing a system resource containing a JGroups
XML configuration, a string representing a URL pointing to a JGroups XML configuration,
or a string representing a file name that contains a JGroups XML configuration.Exception
public static InputStream getConfigStream(File file) throws Exception
Exception
public static InputStream getConfigStream(URL url) throws Exception
Exception
public static InputStream getConfigStream(String properties) throws IOException
properties
- a string representing a system resource containing a JGroups XML configuration, a string
representing a URL pointing to a JGroups ML configuration, or a string representing
a file name that contains a JGroups XML configuration.IOException
- if the provided properties string appears to be a valid URL but is unreachable.public static InputStream getConfigStream(Object properties) throws IOException
IOException
public static void substituteVariables(ProtocolStackConfigurator configurator)
configurator
- Copyright © 2012 JBoss by Red Hat. All Rights Reserved.