Package org.jboss.weld.environment.se
Class StartMain
- java.lang.Object
-
- org.jboss.weld.environment.se.StartMain
-
@Vetoed public class StartMain extends Object
This is the main class that can be called from the command line for a WeldContainer SE app which makes use of the ContainerInitialized event. Something like:java -cp weld-se-shaded.jar:my-app.jar org.jboss.weld.environment.se.StartMain arg1 arg2
- Author:
- Peter Royle, Pete Muir, Ales Justin
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
PARAMETERS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String[]
getParameters()
WeldContainer
go()
static void
main(String[] args)
The main method called from the command line.void
shutdownNow()
Shut down Weld immediately.
-
-
-
Field Detail
-
PARAMETERS
public static String[] PARAMETERS
-
-
Constructor Detail
-
StartMain
public StartMain(String[] commandLineArgs)
-
-
Method Detail
-
go
public WeldContainer go()
-
main
public static void main(String[] args)
The main method called from the command line.- Parameters:
args
- the command line arguments
-
getParameters
public static String[] getParameters()
-
shutdownNow
public void shutdownNow()
Shut down Weld immediately. Blocks until Weld is completely shut down.
-
-