public final class ConsoleBootstrapper
extends java.lang.Object
Bootstrapper for the console.
It provides two modes:
The shell-only mode is started by default. For a standalone node mode run the bootstrapper with the first argument set to standalone
.
Modifier and Type | Field and Description |
---|---|
private static java.net.URL[] |
EMPTY_URLS |
private static java.lang.String |
LIB_PATH |
private static org.slf4j.Logger |
logger |
Modifier | Constructor and Description |
---|---|
private |
ConsoleBootstrapper() |
Modifier and Type | Method and Description |
---|---|
private static void |
addJarsFromDir(org.springframework.context.support.ClassPathXmlApplicationContext context,
java.lang.String libPath) |
private static void |
consoleLoop(org.springframework.context.ConfigurableApplicationContext context,
java.lang.String[] args) |
private static void |
consoleMain(java.lang.String... args) |
private static java.net.URL[] |
dirToArrayOfJars(java.lang.String libPath) |
private static void |
handleException(java.lang.Exception e) |
static void |
main(java.lang.String... args) |
private static void |
standaloneMain(java.lang.String... args) |
private static final java.net.URL[] EMPTY_URLS
private static final java.lang.String LIB_PATH
private static final org.slf4j.Logger logger
public static void main(java.lang.String... args)
private static void standaloneMain(java.lang.String... args) throws java.lang.InterruptedException, java.io.IOException
java.lang.InterruptedException
java.io.IOException
private static void consoleMain(java.lang.String... args) throws java.io.IOException
java.io.IOException
private static void handleException(java.lang.Exception e)
private static void consoleLoop(org.springframework.context.ConfigurableApplicationContext context, java.lang.String[] args)
private static void addJarsFromDir(org.springframework.context.support.ClassPathXmlApplicationContext context, java.lang.String libPath) throws java.io.IOException
java.io.IOException
private static java.net.URL[] dirToArrayOfJars(java.lang.String libPath) throws java.io.IOException
java.io.UncheckedIOException
- in case of any error occurring – cause will contain a detailed errorjava.io.IOException