public interface MVCGroupManager extends MVCHandler
Modifier and Type | Method and Description |
---|---|
void |
addConfiguration(MVCGroupConfiguration configuration) |
MVCGroupConfiguration |
cloneMVCGroupConfiguration(java.lang.String mvcType,
java.util.Map<java.lang.String,java.lang.Object> config)
Clones an existing MVCGroupConfiguration, optionally overriding additional config values.
|
MVCGroupConfiguration |
findConfiguration(java.lang.String mvcType) |
<C extends GriffonController> |
findController(java.lang.String name,
java.lang.Class<C> type)
Finds a named controller.
|
MVCGroup |
findGroup(java.lang.String mvcId) |
<M extends GriffonModel> |
findModel(java.lang.String name,
java.lang.Class<M> type)
Finds a named model.
|
<V extends GriffonView> |
findView(java.lang.String name,
java.lang.Class<V> type)
Finds a named view.
|
GriffonApplication |
getApplication() |
MVCGroup |
getAt(java.lang.String mvcId) |
java.util.Map<java.lang.String,MVCGroupConfiguration> |
getConfigurations() |
<C extends GriffonController> |
getController(java.lang.String name,
java.lang.Class<C> type)
Finds a named controller.
|
java.util.Map<java.lang.String,? extends GriffonController> |
getControllers()
Returns all currently available controller instances, keyed by group name.
|
java.util.Map<java.lang.String,MVCGroup> |
getGroups() |
<M extends GriffonModel> |
getModel(java.lang.String name,
java.lang.Class<M> type)
Finds a named model.
|
java.util.Map<java.lang.String,? extends GriffonModel> |
getModels()
Returns all currently available model instances, keyed by group name.
|
<V extends GriffonView> |
getView(java.lang.String name,
java.lang.Class<V> type)
Finds a named view.
|
java.util.Map<java.lang.String,? extends GriffonView> |
getViews()
Returns all currently available view instances, keyed by group name.
|
void |
initialize(java.util.Map<java.lang.String,MVCGroupConfiguration> configurations)
Initializes this manager with the group configurations provided by the application and addons.
|
Context |
newContext(MVCGroup parentGroup) |
MVCGroup |
newMVCGroup(MVCGroupConfiguration configuration,
java.lang.String mvcId,
java.util.Map<java.lang.String,java.lang.Object> members,
MVCGroup parentGroup)
Creates a new MVCGroup instance.
|
MVCGroupConfiguration |
newMVCGroupConfiguration(java.lang.String mvcType,
java.util.Map<java.lang.String,java.lang.String> members,
java.util.Map<java.lang.String,java.lang.Object> config)
Creates an MVCConfiguration instance with the given arguments.
|
void |
removeConfiguration(MVCGroupConfiguration configuration) |
void |
removeConfiguration(java.lang.String name) |
createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, destroyMVCGroup, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup
@Nonnull MVCGroupConfiguration newMVCGroupConfiguration(@Nonnull java.lang.String mvcType, @Nonnull java.util.Map<java.lang.String,java.lang.String> members, @Nonnull java.util.Map<java.lang.String,java.lang.Object> config)
mvcType
- the name of the MVC groupmembers
- members of the groupconfig
- additional configuration required by the group@Nonnull MVCGroupConfiguration cloneMVCGroupConfiguration(@Nonnull java.lang.String mvcType, @Nonnull java.util.Map<java.lang.String,java.lang.Object> config)
mvcType
- the name of the configuration to cloneconfig
- additional config parameters to be set on the configuration@Nonnull MVCGroup newMVCGroup(@Nonnull MVCGroupConfiguration configuration, @Nullable java.lang.String mvcId, @Nonnull java.util.Map<java.lang.String,java.lang.Object> members, @Nullable MVCGroup parentGroup)
configuration
- the configuration of the groupmvcId
- the id to use for the groupmembers
- the instance members of the groupparentGroup
- the parent group (if any)void initialize(@Nonnull java.util.Map<java.lang.String,MVCGroupConfiguration> configurations)
configurations
- available group configurationsvoid addConfiguration(@Nonnull MVCGroupConfiguration configuration)
void removeConfiguration(@Nonnull MVCGroupConfiguration configuration)
void removeConfiguration(@Nonnull java.lang.String name)
@Nonnull java.util.Map<java.lang.String,MVCGroupConfiguration> getConfigurations()
@Nonnull java.util.Map<java.lang.String,MVCGroup> getGroups()
@Nonnull MVCGroupConfiguration findConfiguration(@Nonnull java.lang.String mvcType)
@Nullable MVCGroup findGroup(@Nonnull java.lang.String mvcId)
@Nullable MVCGroup getAt(@Nonnull java.lang.String mvcId)
@Nonnull java.util.Map<java.lang.String,? extends GriffonModel> getModels()
@Nonnull java.util.Map<java.lang.String,? extends GriffonView> getViews()
@Nonnull java.util.Map<java.lang.String,? extends GriffonController> getControllers()
GriffonApplication getApplication()
@Nonnull <C extends GriffonController> C getController(@Nonnull java.lang.String name, @Nonnull java.lang.Class<C> type) throws ArtifactNotFoundException
name
- the name of the group that holds the controllertype
- the type of the controllerArtifactNotFoundException
- if the named controller could not be found@Nonnull <M extends GriffonModel> M getModel(@Nonnull java.lang.String name, @Nonnull java.lang.Class<M> type) throws ArtifactNotFoundException
name
- the name of the group that holds the modeltype
- the type of the modelArtifactNotFoundException
- if the named model could not be found@Nonnull <V extends GriffonView> V getView(@Nonnull java.lang.String name, @Nonnull java.lang.Class<V> type) throws ArtifactNotFoundException
name
- the name of the group that holds the viewtype
- the type of the viewArtifactNotFoundException
- if the named view could not be found@Nullable <C extends GriffonController> C findController(@Nonnull java.lang.String name, @Nonnull java.lang.Class<C> type)
name
- the name of the group that holds the controllertype
- the type of the controller@Nullable <M extends GriffonModel> M findModel(@Nonnull java.lang.String name, @Nonnull java.lang.Class<M> type)
name
- the name of the group that holds the modeltype
- the type of the model@Nullable <V extends GriffonView> V findView(@Nonnull java.lang.String name, @Nonnull java.lang.Class<V> type)
name
- the name of the group that holds the viewtype
- the type of the view