public abstract class PlatformMain extends Object
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger |
protected File |
root |
Constructor and Description |
---|
PlatformMain() |
Modifier and Type | Method and Description |
---|---|
<T> T |
getContext(Class<T> contextType) |
List<Object> |
getContexts() |
Logger |
getLogger() |
abstract String |
getName()
Returns the platform name associated with this main.
|
<T> T |
getStartedService(Class<T> serviceType)
Optional method.
|
void |
setContext(Object context) |
void |
setLogger(Logger logger) |
abstract void |
start(Properties ctx)
Starts the main entry point using this platform implementation.
|
public Logger getLogger()
public void setLogger(Logger logger)
public void setContext(Object context)
public <T> T getContext(Class<T> contextType)
public abstract String getName()
public abstract void start(Properties ctx) throws Exception
ctx
- Context in which this object executes. It contains arguments passed to the program as well.Exception
- if anything goes wrongpublic <T> T getStartedService(Class<T> serviceType)
T
- service typeserviceType
- type of the requested serviceCopyright © 2009–2023 Oracle Corporation. All rights reserved.