public class AbstractGriffonAddon extends 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.
|
Logger |
getLog() |
Map<String,Map<String,Object>> |
getMvcGroups() |
List<String> |
getStartupGroups()
Returns a list of MVCGroup names that should be auto started.
|
void |
init(GriffonApplication application) |
static Map<String,Map<String,Object>> |
mvcgroup(Class<? extends MVCGroup> g,
Class<? extends GriffonModel> m,
Class<? extends GriffonView> v,
Class<? extends GriffonController> c) |
void |
onShutdown(GriffonApplication application)
Called when the shutdown sequence continues
|
@Inject public AbstractGriffonAddon()
@Nonnull public Logger getLog()
getLog
in interface GriffonAddon
public void init(@Nonnull GriffonApplication application)
init
in interface GriffonAddon
@Nonnull public Map<String,Map<String,Object>> getMvcGroups()
getMvcGroups
in interface GriffonAddon
@Nonnull public List<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