public class Main
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_NAME |
| Constructor and Description |
|---|
Main() |
| Modifier and Type | Method and Description |
|---|---|
ServiceLocator |
createServiceLocator(ModulesRegistry mr,
StartupContext context,
java.util.List<PopulatorPostProcessor> postProcessors,
DescriptorFileFinder descriptorFileFinder) |
protected void |
defineParentClassLoader() |
ModuleStartup |
findStartupService(ModulesRegistry registry,
ServiceLocator serviceLocator,
java.lang.String mainModuleName,
StartupContext context)
Return the ModuleStartup service configured to be used to start the
system.
|
protected java.io.File |
getBootstrapFile()
We need to determine which jar file has been used to load this class
Using the getResourceURL we can get this information, after that, it is
just a bit of detective work to get the file path for the jar file.
|
protected java.lang.ClassLoader |
getParentClassLoader() |
ServiceLocator |
getServiceLocator() |
ModuleStartup |
launch(ModulesRegistry registry,
java.lang.String mainModuleName,
StartupContext context)
Launches the module system and hand over the execution to the
ModuleStartup implementation of the main module. |
protected void |
launch(ModuleStartup startupCode,
StartupContext context) |
static void |
main(java.lang.String[] args) |
void |
run(java.lang.String[] args) |
void |
start(java.lang.String[] args)
Start the server from the command line
|
public static final java.lang.String DEFAULT_NAME
public static void main(java.lang.String[] args)
public void run(java.lang.String[] args)
protected java.io.File getBootstrapFile()
throws BootException
BootException - If failed to determine the bootstrap file name.public void start(java.lang.String[] args)
throws BootException
args - the command line argumentsBootExceptionprotected void defineParentClassLoader()
throws BootException
BootExceptionprotected java.lang.ClassLoader getParentClassLoader()
public ModuleStartup launch(ModulesRegistry registry, java.lang.String mainModuleName, StartupContext context) throws BootException
ModuleStartup implementation of the main module.mainModuleName - The module that will provide ModuleStartup. If null,
one will be auto-discovered.context - startup context instanceBootExceptionpublic ModuleStartup findStartupService(ModulesRegistry registry, ServiceLocator serviceLocator, java.lang.String mainModuleName, StartupContext context) throws BootException
registry - serviceLocator - mainModuleName - context - BootExceptionpublic ServiceLocator createServiceLocator(ModulesRegistry mr, StartupContext context, java.util.List<PopulatorPostProcessor> postProcessors, DescriptorFileFinder descriptorFileFinder) throws BootException
BootExceptionprotected void launch(ModuleStartup startupCode, StartupContext context) throws BootException
BootExceptionpublic ServiceLocator getServiceLocator()
Copyright © 2013 Oracle Corporation. All Rights Reserved.