-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WFCORE-7120] Move the server-side embedding logic to the server and …
…host-controller modules
- Loading branch information
1 parent
7b6198a
commit fddefa9
Showing
25 changed files
with
237 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
*/ | ||
|
||
package org.wildfly.core.embedded; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
import java.nio.file.Files; | ||
|
@@ -19,7 +20,7 @@ | |
import org.wildfly.core.embedding.spi.EmbeddedProcessBootstrapConfiguration; | ||
|
||
/** | ||
* This is the host controller counterpart to EmbeddedProcessFactory which lives behind a module class loader. | ||
* This is the host controller counterpart to EmbeddedProcessFactory that lives behind a module class loader. | ||
* <p> | ||
* Factory that sets up an embedded {@link HostController} using modular classloading. | ||
* </p> | ||
|
@@ -40,6 +41,7 @@ | |
* @author Ken Wills <[email protected]> | ||
* @see EmbeddedProcessFactory | ||
*/ | ||
|
||
public class EmbeddedHostControllerFactory { | ||
|
||
public static final String JBOSS_EMBEDDED_ROOT = "jboss.embedded.root"; | ||
|
@@ -180,7 +182,7 @@ private static class HostControllerImpl extends AbstractEmbeddedManagedProcess i | |
private final Map<String, String> systemEnv; // TODO why is this not used? | ||
|
||
public HostControllerImpl(final File jbossHomeDir, String[] cmdargs, Properties systemProps, Map<String, String> systemEnv, ClassLoader embeddedModuleCL) { | ||
super(cmdargs, embeddedModuleCL); | ||
super(EmbeddedProcessBootstrap.Type.HOST_CONTROLLER, cmdargs, embeddedModuleCL); | ||
this.jbossHomeDir = jbossHomeDir; | ||
this.systemProps = systemProps; | ||
this.systemEnv = systemEnv; | ||
|
@@ -193,12 +195,6 @@ EmbeddedProcessBootstrapConfiguration getBootstrapConfiguration() { | |
return configuration; | ||
} | ||
|
||
@Override | ||
EmbeddedProcessBootstrap loadEmbeddedProcessBootstrap(ClassLoader embeddedModuleCL) { | ||
return new HostEmbeddedProcessBootstrap(); | ||
} | ||
|
||
|
||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,10 +12,10 @@ | |
import org.wildfly.core.embedded.logging.EmbeddedLogger; | ||
|
||
/** | ||
* Indirection to the {@link StandaloneServer} or {@link HostController}; used to encapsulate access to the underlying | ||
* embedded instance in a manner that does not directly link this class. Necessary to avoid {@link ClassCastException} | ||
* when this class is loaded by the application {@link ClassLoader} (or any other hierarchical CL) while the server is | ||
* loaded by a modular environment. | ||
* Embedding-application-side indirection to the {@link StandaloneServer} or {@link HostController}. | ||
* Used to encapsulate access to the underlying embedded instance in a manner that does not directly link this class. | ||
* Necessary to avoid {@link ClassCastException} when this class is loaded by the application {@link ClassLoader} | ||
* (or any other hierarchical CL) while the server is loaded by a modular environment. | ||
* | ||
* @author <a href="mailto:[email protected]">Andrew Lee Rubinger</a> | ||
* @author [email protected]. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.