public interface Application extends ActivationEventListenerRegistration, Activation, MetaInfoHolder
Modifier and Type | Interface and Description |
---|---|
static class |
Application.Mode
Application modes.
|
Modifier and Type | Method and Description |
---|---|
ApplicationDescriptor |
descriptor() |
Layer |
findLayer(String layerName)
Find a Layer.
|
Module |
findModule(String layerName,
String moduleName)
Find a Module.
|
Stream<? extends Layer> |
layers() |
Application.Mode |
mode() |
String |
name() |
String |
version()
The version of the application.
|
deregisterActivationEventListener, registerActivationEventListener
activate, passivate
metaInfo
String name()
String version()
Application.Mode mode()
Layer findLayer(String layerName) throws IllegalArgumentException
layerName
- Layer nameIllegalArgumentException
- if there's no such LayerModule findModule(String layerName, String moduleName) throws IllegalArgumentException
layerName
- Layer namemoduleName
- Module nameIllegalArgumentException
- if there's no such ModuleApplicationDescriptor descriptor()