|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.server.EmbeddedConfigurator
public final class EmbeddedConfigurator
Allows to configure an embedded server with an XML configuration file.
Field Summary | |
---|---|
private static java.lang.String |
CONFIGURATION_FILE_NAME
Name of the Default XML configuration file. |
private static JLog |
logger
Logger. |
Constructor Summary | |
---|---|
private |
EmbeddedConfigurator()
Utility class, no public constructor. |
Method Summary | |
---|---|
private static void |
configure(Embedded embedded,
java.net.URL xmlConfigurationURL)
Configure the given embedded server with the xml configuration file. |
static Embedded |
create()
Create and configure an embedded server with the XML configuration file URL found in classpath. |
static Embedded |
create(java.net.URL xmlConfigurationURL)
Create and configure an embedded server with the given XML configuration file URL. |
static Embedded |
init(Embedded embedded,
java.net.URL xmlConfigurationURL)
Configure the given embedded server with the given XML configuration file URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String CONFIGURATION_FILE_NAME
private static JLog logger
Constructor Detail |
---|
private EmbeddedConfigurator()
Method Detail |
---|
public static Embedded init(Embedded embedded, java.net.URL xmlConfigurationURL) throws EmbeddedException
embedded
- the embedded server to configure.xmlConfigurationURL
- the URL to the xml configuration file.
EmbeddedException
- if the embedded configuration fails.public static Embedded create(java.net.URL xmlConfigurationURL) throws EmbeddedException
xmlConfigurationURL
- the URL to the xml configuration file.
EmbeddedException
- if the embedded configuration fails.public static Embedded create() throws EmbeddedException
EmbeddedException
- if the embedded configuration fails.private static void configure(Embedded embedded, java.net.URL xmlConfigurationURL) throws EmbeddedException
embedded
- the embedded server to configure.xmlConfigurationURL
- the URL to the xml configuration file.
EmbeddedException
- if the embedded configuration fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |