@Singleton @Requires(missingBeans=EmbeddedApplication.class) public class MessagingApplication extends Object implements EmbeddedApplication<MessagingApplication>, 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.
|
MessagingApplication |
stop()
Stops the life cycle component.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEnvironment, isForceExit
getDescription
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<MessagingApplication>
ApplicationContext
for the serverpublic ApplicationConfiguration getApplicationConfiguration()
getApplicationConfiguration
in interface EmbeddedApplication<MessagingApplication>
ApplicationConfiguration
instancepublic boolean isRunning()
public boolean isServer()
EmbeddedApplication
isServer
in interface EmbeddedApplication<MessagingApplication>
public MessagingApplication start()
LifeCycle
start
in interface ApplicationContextLifeCycle<MessagingApplication>
start
in interface LifeCycle
public MessagingApplication stop()
LifeCycle
stop
in interface ApplicationContextLifeCycle<MessagingApplication>
stop
in interface LifeCycle
public String getDescription()
Described
getDescription
in interface Described