|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.config.Config com.hazelcast.config.ClasspathXmlConfig
public class ClasspathXmlConfig
A Config
which is initialized by loading an XML configuration file from the classpath.
FileSystemXmlConfig
Constructor Summary | |
---|---|
ClasspathXmlConfig(ClassLoader classLoader,
String resource)
Creates a config which is loaded from a classpath resource. |
|
ClasspathXmlConfig(ClassLoader classLoader,
String resource,
Properties properties)
Creates a config which is loaded from a classpath resource. |
|
ClasspathXmlConfig(String resource)
Creates a config which is loaded from a classpath resource using the Thread.currentThread contextClassLoader. |
|
ClasspathXmlConfig(String resource,
Properties properties)
Creates a config which is loaded from a classpath resource using the Thread.currentThread contextClassLoader. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClasspathXmlConfig(String resource)
resource
- the xml resource.
IllegalArgumentException
- if the resource could not be found.
HazelcastException
- if the XML content is invalidpublic ClasspathXmlConfig(String resource, Properties properties)
resource
- the xml resource.properties
- the Properties to resolve variables in the XML.
IllegalArgumentException
- if the resource could not be found or if properties is null.
HazelcastException
- if the XML content is invalidpublic ClasspathXmlConfig(ClassLoader classLoader, String resource)
classLoader
- the ClassLoader used to load the resource.resource
- the classpath resource
IllegalArgumentException
- if classLoader or resource is null, or if the resource is not found.
HazelcastException
- if the XML content is invalidpublic ClasspathXmlConfig(ClassLoader classLoader, String resource, Properties properties)
classLoader
- the ClassLoader used to load the resource.resource
- the classpath resourceproperties
- to properties used to resolve variables in the XML.
IllegalArgumentException
- if classLoader or resource is null, or if the resource is not found.
HazelcastException
- if the XML content is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |