Package org.wildfly.core.embedded
Class EmbeddedServerFactory
- java.lang.Object
-
- org.wildfly.core.embedded.EmbeddedServerFactory
-
@Deprecated public class EmbeddedServerFactory extends Object
Deprecated.Factory that sets up an embedded standalone server using modular classloading.
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
-
-
Constructor Summary
Constructors Constructor Description EmbeddedServerFactory()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StandaloneServercreate(String jbossHomePath, String modulePath, String... systemPackages)Deprecated.Create an embedded standalone server.static StandaloneServercreate(String jbossHomePath, String modulePath, String[] systemPackages, String[] cmdargs)Deprecated.Create an embedded standalone server.static StandaloneServercreate(org.jboss.modules.ModuleLoader moduleLoader, File jbossHomeDir)Deprecated.Create an embedded standalone server with an already established module loader.static StandaloneServercreate(org.jboss.modules.ModuleLoader moduleLoader, File jbossHomeDir, String[] cmdargs)Deprecated.Create an embedded standalone server with an already established module loader.static EmbeddedServerReferencecreateHostController(String jbossHomePath, String modulePath, String[] systemPackages, String[] cmdargs)Deprecated.static EmbeddedServerReferencecreateHostController(org.jboss.modules.ModuleLoader moduleLoader, File jbossHomeDir, String[] cmdargs)Deprecated.Create an embedded host controller with an already established module loader.static EmbeddedServerReferencecreateStandalone(String jbossHomePath, String modulePath, String[] systemPackages, String[] cmdargs)Deprecated.static EmbeddedServerReferencecreateStandalone(org.jboss.modules.ModuleLoader moduleLoader, File jbossHomeDir, String[] cmdargs)Deprecated.
-
-
-
Method Detail
-
create
public static StandaloneServer create(String jbossHomePath, String modulePath, String... systemPackages)
Deprecated.Create an embedded standalone server.- Parameters:
jbossHomePath- the location of the root of server installation. Cannot benullor empty.modulePath- the location of the root of the module repository. May benullif the standard location underjbossHomePathshould be usedsystemPackages- names of any packages that must be treated as system packages, with the same classes visible to the caller's classloader visible to server-side classes loaded from the server's modular classloader- Returns:
- the server. Will not be
null
-
create
public static StandaloneServer create(String jbossHomePath, String modulePath, String[] systemPackages, String[] cmdargs)
Deprecated.Create an embedded standalone server.- Parameters:
jbossHomePath- the location of the root of server installation. Cannot benullor empty.modulePath- the location of the root of the module repository. May benullif the standard location underjbossHomePathshould be usedsystemPackages- names of any packages that must be treated as system packages, with the same classes visible to the caller's classloader visible to server-side classes loaded from the server's modular classloadercmdargs- any additional arguments to pass to the embedded server (e.g. -b=192.168.100.10)- Returns:
- the server. Will not be
null
-
createStandalone
public static EmbeddedServerReference createStandalone(String jbossHomePath, String modulePath, String[] systemPackages, String[] cmdargs)
Deprecated.
-
create
public static StandaloneServer create(org.jboss.modules.ModuleLoader moduleLoader, File jbossHomeDir)
Deprecated.Create an embedded standalone server with an already established module loader.- Parameters:
moduleLoader- the module loader. Cannot benulljbossHomeDir- the location of the root of server installation. Cannot benullor empty.- Returns:
- the server. Will not be
null
-
create
public static StandaloneServer create(org.jboss.modules.ModuleLoader moduleLoader, File jbossHomeDir, String[] cmdargs)
Deprecated.Create an embedded standalone server with an already established module loader.- Parameters:
moduleLoader- the module loader. Cannot benulljbossHomeDir- the location of the root of server installation. Cannot benullor empty.cmdargs- any additional arguments to pass to the embedded server (e.g. -b=192.168.100.10)- Returns:
- the server. Will not be
null
-
createStandalone
public static EmbeddedServerReference createStandalone(org.jboss.modules.ModuleLoader moduleLoader, File jbossHomeDir, String[] cmdargs)
Deprecated.
-
createHostController
public static EmbeddedServerReference createHostController(String jbossHomePath, String modulePath, String[] systemPackages, String[] cmdargs)
Deprecated.
-
createHostController
public static EmbeddedServerReference createHostController(org.jboss.modules.ModuleLoader moduleLoader, File jbossHomeDir, String[] cmdargs)
Deprecated.Create an embedded host controller with an already established module loader.- Parameters:
moduleLoader- the module loader. Cannot benulljbossHomeDir- the location of the root of server installation. Cannot benullor empty.cmdargs- any additional arguments to pass to the embedded server (e.g. -b=192.168.100.10)- Returns:
- the running host controller Will not be
null
-
-