public class Application
extends java.lang.Object
Constructor and Description |
---|
Application(Framework framework,
ApplicationDefinition def)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
create(boolean isReified)
Create the application.
|
Datas |
createDatas(Service<?> service)
Create the datas for one service.
|
java.lang.ClassLoader |
getClassLoader()
Return the modules ClassLoader.
|
Datas |
getDatas(NamespaceKey serviceKey)
Return the datas associated with a Service.
|
Datas |
getDatas(java.lang.String serviceName)
Return the datas associated with a Service.
|
ApplicationDefinition |
getDefinition()
Return the Application Definition.
|
Framework |
getFramework()
Return the Framework.
|
long |
getID()
Return the Application ID.
|
Module |
getModule(long moduleID)
Return a Module by its associated long ID.
|
Module |
getModule(java.lang.String name)
Return a Module by its associated name.
|
java.util.Map<java.lang.String,Module> |
getModules()
Return the Map of modules.
|
java.util.Map<java.lang.Long,Module> |
getModulesByID()
Return the Modules.
|
java.lang.String |
getName()
Return the Application name.
|
Type |
getType(NamespaceKey key)
Return the type of a specified key.
|
Type |
getType(java.lang.String name)
Return the type of a specified name.
|
void |
init()
Initialize the application.
|
boolean |
isReified()
Return true if the Application is instanciated (reified).
|
void |
setUp()
Setup the application.
|
void |
shutdown()
Shutdown the application.
|
void |
shutDown()
Shutdown the framework.
|
void |
start()
Start the application.
|
public Application(Framework framework, ApplicationDefinition def)
framework
- the frameworkdef
- the Application Definitionpublic void shutDown()
public boolean isReified()
Framework.getApplicationName()
is not null, and this
application is not this specified Application. It is useful to have not reified Applications if the Applications must be started separately as
different Java Applications (for example, on various hosts).public long getID()
public Type getType(java.lang.String name)
name
- the type namepublic Type getType(NamespaceKey key)
key
- the type keypublic Datas getDatas(java.lang.String serviceName)
serviceName
- the service namepublic Datas getDatas(NamespaceKey serviceKey)
serviceKey
- the service keypublic Datas createDatas(Service<?> service)
service
- the Servicepublic Framework getFramework()
public ApplicationDefinition getDefinition()
public java.lang.String getName()
public java.lang.ClassLoader getClassLoader()
public java.util.Map<java.lang.String,Module> getModules()
public Module getModule(java.lang.String name)
name
- the Module namepublic Module getModule(long moduleID)
moduleID
- the Module long IDpublic java.util.Map<java.lang.Long,Module> getModulesByID()
public void setUp()
public void start()
public void shutdown()
public void init() throws FrameworkException
FrameworkException
public void create(boolean isReified) throws FrameworkException
isReified
- true if the application is reifiedFrameworkException
Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence