Class EmbeddedStandaloneServerFactory
- java.lang.Object
-
- org.wildfly.core.embedded.EmbeddedStandaloneServerFactory
-
public class EmbeddedStandaloneServerFactory extends Object
This is the standalone server counter-part of EmbeddedProcessFactory which lives behind a module class loader.Factory that sets up an embedded @{link StandaloneServer} using modular classloading.
To use this class the
jboss.home.dirsystem property must be set to the application server home directory. By default it will use the directories{$jboss.home.dir}/standalone/configas the configuration directory and{$jboss.home.dir}/standalone/dataas the data directory. This can be overridden with the${jboss.server.base.dir},${jboss.server.config.dir}or${jboss.server.config.dir}system properties as for normal server startup.If a clean run is wanted, you can specify
${jboss.embedded.root}to an existing directory which will copy the contents of the data and configuration directories under a temporary folder. This has the effect of this run not polluting later runs of the embedded server.- Author:
- Kabir Khan, Thomas.Diesler@jboss.com
- See Also:
EmbeddedProcessFactory
-
-
Field Summary
Fields Modifier and Type Field Description static StringJBOSS_EMBEDDED_ROOT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StandaloneServercreate(File jbossHomeDir, org.jboss.modules.ModuleLoader moduleLoader, Properties systemProps, Map<String,String> systemEnv, String[] cmdargs, ClassLoader embeddedModuleCL)
-
-
-
Field Detail
-
JBOSS_EMBEDDED_ROOT
public static final String JBOSS_EMBEDDED_ROOT
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static StandaloneServer create(File jbossHomeDir, org.jboss.modules.ModuleLoader moduleLoader, Properties systemProps, Map<String,String> systemEnv, String[] cmdargs, ClassLoader embeddedModuleCL)
-
-