public interface GriffonApplication extends Observable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_LOCALE |
static java.lang.String |
PROPERTY_PHASE |
Modifier and Type | Method and Description |
---|---|
void |
addShutdownHandler(ShutdownHandler handler)
Registers a ShutdownHandler on this application
|
boolean |
canShutdown()
Queries any available ShutdownHandlers.
|
java.lang.Object |
createApplicationContainer(java.util.Map<java.lang.String,java.lang.Object> attributes) |
ActionManager |
getActionManager() |
AddonManager |
getAddonManager() |
ApplicationClassLoader |
getApplicationClassLoader() |
ArtifactManager |
getArtifactManager() |
Configuration |
getConfiguration() |
ConfigurationManager |
getConfigurationManager() |
Context |
getContext() |
EventRouter |
getEventRouter() |
Injector<?> |
getInjector() |
java.util.Locale |
getLocale()
Gets the application locale.
|
org.slf4j.Logger |
getLog()
Returns a Logger instance suitable for this application.
|
MessageSource |
getMessageSource() |
MVCGroupManager |
getMvcGroupManager() |
ApplicationPhase |
getPhase()
Returns the current phase.
|
ResourceHandler |
getResourceHandler() |
ResourceInjector |
getResourceInjector() |
ResourceResolver |
getResourceResolver() |
java.lang.String[] |
getStartupArgs()
Returns the arguments set on the command line (if any).
|
UIThreadManager |
getUIThreadManager() |
<W> WindowManager<W> |
getWindowManager() |
void |
initialize()
Executes the 'Initialize' life cycle phase.
|
void |
ready()
Executes the 'Ready' life cycle phase.
|
void |
removeShutdownHandler(ShutdownHandler handler)
Removes a ShutdownHandler from this application
|
void |
setLocale(java.util.Locale locale)
Sets the application locale.
|
void |
setLocaleAsString(java.lang.String locale)
Sets the application locale.
|
boolean |
shutdown()
Executes the 'Shutdown' life cycle phase.
|
void |
startup()
Executes the 'Startup' life cycle phase.
|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
static final java.lang.String PROPERTY_LOCALE
static final java.lang.String PROPERTY_PHASE
@Nonnull java.lang.Object createApplicationContainer(@Nonnull java.util.Map<java.lang.String,java.lang.Object> attributes)
@Nonnull ApplicationClassLoader getApplicationClassLoader()
@Nonnull Configuration getConfiguration()
@Nonnull UIThreadManager getUIThreadManager()
@Nonnull EventRouter getEventRouter()
@Nonnull ConfigurationManager getConfigurationManager()
@Nonnull ArtifactManager getArtifactManager()
@Nonnull ActionManager getActionManager()
@Nonnull AddonManager getAddonManager()
@Nonnull MVCGroupManager getMvcGroupManager()
@Nonnull MessageSource getMessageSource()
@Nonnull ResourceResolver getResourceResolver()
@Nonnull ResourceHandler getResourceHandler()
@Nonnull ResourceInjector getResourceInjector()
@Nonnull Injector<?> getInjector()
@Nonnull Context getContext()
@Nonnull <W> WindowManager<W> getWindowManager()
void initialize()
void startup()
void ready()
boolean shutdown()
boolean canShutdown()
void addShutdownHandler(@Nonnull ShutdownHandler handler)
handler
- the shutdown handler to be registered; null and/or
duplicated values should be ignoredvoid removeShutdownHandler(@Nonnull ShutdownHandler handler)
handler
- the shutdown handler to be removed; null and/or
duplicated values should be ignored@Nonnull java.util.Locale getLocale()
void setLocale(@Nonnull java.util.Locale locale)
This is a bound property.
locale
- the Locale value to usevoid setLocaleAsString(@Nullable java.lang.String locale)
This is a bound property.
locale
- a literal representation of a Locale@Nonnull ApplicationPhase getPhase()
@Nonnull java.lang.String[] getStartupArgs()
@Nonnull org.slf4j.Logger getLog()