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