public interface GriffonMvcArtifact extends GriffonArtifact
Modifier and Type | Method and Description |
---|---|
MVCGroup |
getMvcGroup() |
void |
mvcGroupDestroy()
Callback for when the group is destroyed and disposed from the application.
|
void |
mvcGroupInit(Map<String,Object> args)
Post initialization callback.
|
getApplication, getGriffonClass, getLog, getTypeClass
isUIThread, runFuture, runFuture, runInsideUIAsync, runInsideUISync, runInsideUISync, runOutsideUI
createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, destroyMVCGroup, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup
classloader, getResourceAsStream, getResourceAsURL, getResources
void mvcGroupInit(@Nonnull Map<String,Object> args)
This callback is called for all artifacts that belong to the
same MVC group right after each instance has been created.
Each entry on the args Map points either to an MVC
member or a variable that was defined using any of the createMVCGroup
and/or createMVC
methods that can take a Map as parameter.
args
- a Map of MVC instances or variables keyed by type.void mvcGroupDestroy()
Once an artifact has been "destroyed" it should not be used anymore. The application will remove any references to the group on its cache.