public abstract class Application<T extends Configuration> extends Object
| Constructor and Description |
|---|
Application() |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getConfigurationClass()
Returns the
Class of the configuration class type parameter. |
String |
getName()
Return the name of the application.
|
abstract void |
initialize(WriteSession session)
Initialize the application.
|
abstract void |
setup(Environment environment,
Bootstrap<T> bootstrap)
Setup the application.
|
abstract void |
shutdown()
Shutdown the application.
|
public Application()
public final Class<T> getConfigurationClass()
Class of the configuration class type parameter.Generics.getTypeParameter(Class, Class)public abstract void setup(Environment environment, Bootstrap<T> bootstrap) throws ApplicationSetupException
Bootstrap instance, and publish
the root resources for the application in the Environment instance.environment - the environment for publishing root resources.bootstrap - the bootstrap for registering resource handler instances and
classes.ApplicationSetupException - if any failure prevented setting up the application.public abstract void initialize(WriteSession session) throws ApplicationInitializationException
session - the session to use for controlling the lifecycle of the
resources managed by the framework.ApplicationInitializationException - if any failure prevented the initialization of the
application.public abstract void shutdown() throws ApplicationShutdownException
ApplicationShutdownException - if any failure prevented the graceful termination of the
application.
Copyright (C) 2014-2016, Center for Open Middleware