org.qi4j.api.structure
Interface Application

All Superinterfaces:
Activation, ActivationEventListenerRegistration, MetaInfoHolder

public interface Application
extends ActivationEventListenerRegistration, Activation, MetaInfoHolder

The Application represents a whole Qi4j application.


Nested Class Summary
static class Application.Mode
          Application modes.
 
Method Summary
 ApplicationDescriptor descriptor()
           
 Layer findLayer(java.lang.String layerName)
           
 Module findModule(java.lang.String layerName, java.lang.String moduleName)
           
 Application.Mode mode()
           
 java.lang.String name()
           
 java.lang.String version()
          The version of the application.
 
Methods inherited from interface org.qi4j.api.activation.ActivationEventListenerRegistration
deregisterActivationEventListener, registerActivationEventListener
 
Methods inherited from interface org.qi4j.api.activation.Activation
activate, passivate
 
Methods inherited from interface org.qi4j.api.structure.MetaInfoHolder
metaInfo
 

Method Detail

name

java.lang.String name()

version

java.lang.String version()
The version of the application. This can be in any format, but most likely will follow the Dewey format, i.e. x.y.z.

Returns:
the version of the application

mode

Application.Mode mode()

findLayer

Layer findLayer(java.lang.String layerName)
                throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

findModule

Module findModule(java.lang.String layerName,
                  java.lang.String moduleName)
                  throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

descriptor

ApplicationDescriptor descriptor()