@Singleton @Requires(missingBeans=EmbeddedApplication.class) public class MessagingApplication extends Object implements EmbeddedApplication, Described
EmbeddedApplication
that gets activated for messaging applications when
no other application is present.Constructor and Description |
---|
MessagingApplication(ApplicationContext applicationContext,
ApplicationConfiguration configuration)
Constructs a new messaging application.
|
Modifier and Type | Method and Description |
---|---|
ApplicationConfiguration |
getApplicationConfiguration() |
ApplicationContext |
getApplicationContext()
Resolves the
ApplicationContext for this class. |
String |
getDescription()
A description that describes this object.
|
boolean |
isRunning() |
boolean |
isServer()
This method returns whether the application is a server application or not.
|
MessagingApplication |
start()
Starts the lifecyle component.
|
ApplicationContextLifeCycle |
stop()
Stops the life cycle component.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEnvironment, isForceExit
public MessagingApplication(ApplicationContext applicationContext, ApplicationConfiguration configuration)
applicationContext
- The contextconfiguration
- The configurationpublic ApplicationContext getApplicationContext()
ApplicationContextProvider
ApplicationContext
for this class.getApplicationContext
in interface ApplicationContextProvider
getApplicationContext
in interface EmbeddedApplication
ApplicationContext
for the serverpublic ApplicationConfiguration getApplicationConfiguration()
getApplicationConfiguration
in interface EmbeddedApplication
ApplicationConfiguration
instancepublic boolean isRunning()
public boolean isServer()
EmbeddedApplication
isServer
in interface EmbeddedApplication
public MessagingApplication start()
LifeCycle
start
in interface ApplicationContextLifeCycle
start
in interface LifeCycle
public ApplicationContextLifeCycle stop()
LifeCycle
stop
in interface ApplicationContextLifeCycle
stop
in interface LifeCycle
public String getDescription()
Described
getDescription
in interface Described