public class AbstractGriffonAddon extends java.lang.Object implements GriffonAddon
SUFFIX
Constructor and Description |
---|
AbstractGriffonAddon() |
Modifier and Type | Method and Description |
---|---|
boolean |
canShutdown(GriffonApplication application)
Asks this handler if the application's shutdown sequence can proceed or not.
|
org.slf4j.Logger |
getLog() |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> |
getMvcGroups() |
java.util.List<java.lang.String> |
getStartupGroups()
Returns a list of MVCGroup names that should be auto started.
|
void |
init(GriffonApplication application) |
static java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> |
mvcgroup(java.lang.Class<? extends MVCGroup> g,
java.lang.Class<? extends GriffonModel> m,
java.lang.Class<? extends GriffonView> v,
java.lang.Class<? extends GriffonController> c) |
void |
onShutdown(GriffonApplication application)
Called when the shutdown sequence continues
|
@Inject public AbstractGriffonAddon()
@Nonnull public org.slf4j.Logger getLog()
getLog
in interface GriffonAddon
public void init(@Nonnull GriffonApplication application)
init
in interface GriffonAddon
@Nonnull public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> getMvcGroups()
getMvcGroups
in interface GriffonAddon
@Nonnull public java.util.List<java.lang.String> getStartupGroups()
GriffonAddon
getStartupGroups
in interface GriffonAddon
public boolean canShutdown(@Nonnull GriffonApplication application)
ShutdownHandler
Return false if the shutdown sequence must be aborted.
canShutdown
in interface ShutdownHandler
application
- the current running applicationpublic void onShutdown(@Nonnull GriffonApplication application)
ShutdownHandler
onShutdown
in interface ShutdownHandler
application
- the current running application@Nonnull public static java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> mvcgroup(@Nonnull java.lang.Class<? extends MVCGroup> g, @Nonnull java.lang.Class<? extends GriffonModel> m, @Nonnull java.lang.Class<? extends GriffonView> v, @Nonnull java.lang.Class<? extends GriffonController> c)