public abstract class AbstractMVCGroupManager extends java.lang.Object implements MVCGroupManager
MVCGroupManager
interface.Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ERROR_ARGS_NULL |
protected static java.lang.String |
ERROR_CONFIG_NULL |
protected static java.lang.String |
ERROR_CONFIGURATION_NULL |
protected static java.lang.String |
ERROR_GROUP_NULL |
protected static java.lang.String |
ERROR_MVCID_BLANK |
protected static java.lang.String |
ERROR_MVCTYPE_BLANK |
protected static java.lang.String |
ERROR_NAME_BLANK |
protected static java.lang.String |
ERROR_TYPE_NULL |
Constructor and Description |
---|
AbstractMVCGroupManager(GriffonApplication application) |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguration(MVCGroupConfiguration configuration) |
protected void |
addGroup(MVCGroup group) |
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.
|
<MVC extends TypedMVCGroup> |
createMVC(java.lang.Class<? extends MVC> mvcType)
Instantiates an MVC group of the specified type returning only the MVC parts.
|
<MVC extends TypedMVCGroup> |
createMVC(java.lang.Class<? extends MVC> mvcType,
java.util.Map<java.lang.String,java.lang.Object> args)
Instantiates an MVC group of the specified type with additional variables.
|
<MVC extends TypedMVCGroup> |
createMVC(java.lang.Class<? extends MVC> mvcType,
java.lang.String mvcId)
Instantiates an MVC group of the specified type with a particular name.
|
<MVC extends TypedMVCGroup> |
createMVC(java.lang.Class<? extends MVC> mvcType,
java.lang.String mvcId,
java.util.Map<java.lang.String,java.lang.Object> args)
Instantiates an MVC group of the specified type with a particular name.
|
<MVC extends TypedMVCGroup> |
createMVC(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.Class<? extends MVC> mvcType)
Instantiates an MVC group of the specified type with additional variables.
|
<MVC extends TypedMVCGroup> |
createMVC(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.Class<? extends MVC> mvcType,
java.lang.String mvcId)
Instantiates an MVC group of the specified type with a particular name.
|
java.util.List<? extends GriffonMvcArtifact> |
createMVC(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.String mvcType)
Instantiates an MVC group of the specified type with additional variables.
|
java.util.List<? extends GriffonMvcArtifact> |
createMVC(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.String mvcType,
java.lang.String mvcId)
Instantiates an MVC group of the specified type with a particular name.
|
protected java.util.List<? extends GriffonMvcArtifact> |
createMVC(MVCGroupConfiguration configuration,
java.lang.String mvcId,
java.util.Map<java.lang.String,java.lang.Object> args) |
java.util.List<? extends GriffonMvcArtifact> |
createMVC(java.lang.String mvcType)
Instantiates an MVC group of the specified type returning only the MVC parts.
|
java.util.List<? extends GriffonMvcArtifact> |
createMVC(java.lang.String mvcType,
java.util.Map<java.lang.String,java.lang.Object> args)
Instantiates an MVC group of the specified type with additional variables.
|
java.util.List<? extends GriffonMvcArtifact> |
createMVC(java.lang.String mvcType,
java.lang.String mvcId)
Instantiates an MVC group of the specified type with a particular name.
|
java.util.List<? extends GriffonMvcArtifact> |
createMVC(java.lang.String mvcType,
java.lang.String mvcId,
java.util.Map<java.lang.String,java.lang.Object> args)
Instantiates an MVC group of the specified type with a particular name.
|
<MVC extends TypedMVCGroup> |
createMVCGroup(java.lang.Class<? extends MVC> mvcType)
Instantiates an MVC group of the specified type.
|
<MVC extends TypedMVCGroup> |
createMVCGroup(java.lang.Class<? extends MVC> mvcType,
java.util.Map<java.lang.String,java.lang.Object> args)
Instantiates an MVC group of the specified type with additional variables.
|
<MVC extends TypedMVCGroup> |
createMVCGroup(java.lang.Class<? extends MVC> mvcType,
java.lang.String mvcId)
Instantiates an MVC group of the specified type with a particular name.
|
<MVC extends TypedMVCGroup> |
createMVCGroup(java.lang.Class<? extends MVC> mvcType,
java.lang.String mvcId,
java.util.Map<java.lang.String,java.lang.Object> args)
Instantiates an MVC group of the specified type with a particular name.
|
<MVC extends TypedMVCGroup> |
createMVCGroup(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.Class<? extends MVC> mvcType)
Instantiates an MVC group of the specified type with additional variables.
|
<MVC extends TypedMVCGroup> |
createMVCGroup(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.Class<? extends MVC> mvcType,
java.lang.String mvcId)
Instantiates an MVC group of the specified type with a particular name.
|
MVCGroup |
createMVCGroup(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.String mvcType)
Instantiates an MVC group of the specified type with additional variables.
|
MVCGroup |
createMVCGroup(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.String mvcType,
java.lang.String mvcId)
Instantiates an MVC group of the specified type with a particular name.
|
protected abstract MVCGroup |
createMVCGroup(MVCGroupConfiguration configuration,
java.lang.String mvcId,
java.util.Map<java.lang.String,java.lang.Object> args) |
MVCGroup |
createMVCGroup(java.lang.String mvcType)
Instantiates an MVC group of the specified type.
|
MVCGroup |
createMVCGroup(java.lang.String mvcType,
java.util.Map<java.lang.String,java.lang.Object> args)
Instantiates an MVC group of the specified type with additional variables.
|
MVCGroup |
createMVCGroup(java.lang.String mvcType,
java.lang.String mvcId)
Instantiates an MVC group of the specified type with a particular name.
|
MVCGroup |
createMVCGroup(java.lang.String mvcType,
java.lang.String mvcId,
java.util.Map<java.lang.String,java.lang.Object> args)
Instantiates an MVC group of the specified type with a particular name.
|
protected abstract void |
doInitialize(java.util.Map<java.lang.String,MVCGroupConfiguration> configurations) |
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.
|
protected <MVC extends TypedMVCGroup> |
nameOf(java.lang.Class<? extends MVC> mvcType) |
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) |
protected void |
removeGroup(MVCGroup group) |
protected <MVC extends TypedMVCGroup> |
typedMvcGroup(java.lang.Class<? extends MVC> mvcType,
MVCGroup mvcGroup) |
<MVC extends TypedMVCGroup,M extends GriffonModel,V extends GriffonView,C extends GriffonController> |
withMVC(java.lang.Class<? extends MVC> mvcType,
java.util.Map<java.lang.String,java.lang.Object> args,
MVCFunction<M,V,C> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
<MVC extends TypedMVCGroup,M extends GriffonModel,V extends GriffonView,C extends GriffonController> |
withMVC(java.lang.Class<? extends MVC> mvcType,
MVCFunction<M,V,C> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
<MVC extends TypedMVCGroup,M extends GriffonModel,V extends GriffonView,C extends GriffonController> |
withMVC(java.lang.Class<? extends MVC> mvcType,
java.lang.String mvcId,
java.util.Map<java.lang.String,java.lang.Object> args,
MVCFunction<M,V,C> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
<MVC extends TypedMVCGroup,M extends GriffonModel,V extends GriffonView,C extends GriffonController> |
withMVC(java.lang.Class<? extends MVC> mvcType,
java.lang.String mvcId,
MVCFunction<M,V,C> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
<MVC extends TypedMVCGroup,M extends GriffonModel,V extends GriffonView,C extends GriffonController> |
withMVC(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.Class<? extends MVC> mvcType,
MVCFunction<M,V,C> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
<MVC extends TypedMVCGroup,M extends GriffonModel,V extends GriffonView,C extends GriffonController> |
withMVC(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.Class<? extends MVC> mvcType,
java.lang.String mvcId,
MVCFunction<M,V,C> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
<M extends GriffonModel,V extends GriffonView,C extends GriffonController> |
withMVC(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.String mvcType,
MVCFunction<M,V,C> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
<M extends GriffonModel,V extends GriffonView,C extends GriffonController> |
withMVC(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.String mvcType,
java.lang.String mvcId,
MVCFunction<M,V,C> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
<M extends GriffonModel,V extends GriffonView,C extends GriffonController> |
withMVC(java.lang.String mvcType,
java.util.Map<java.lang.String,java.lang.Object> args,
MVCFunction<M,V,C> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
<M extends GriffonModel,V extends GriffonView,C extends GriffonController> |
withMVC(java.lang.String mvcType,
MVCFunction<M,V,C> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
<M extends GriffonModel,V extends GriffonView,C extends GriffonController> |
withMVC(java.lang.String mvcType,
java.lang.String mvcId,
java.util.Map<java.lang.String,java.lang.Object> args,
MVCFunction<M,V,C> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
<M extends GriffonModel,V extends GriffonView,C extends GriffonController> |
withMVC(java.lang.String mvcType,
java.lang.String mvcId,
MVCFunction<M,V,C> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
<MVC extends TypedMVCGroup> |
withMVCGroup(java.lang.Class<? extends MVC> mvcType,
java.util.Map<java.lang.String,java.lang.Object> args,
TypedMVCGroupFunction<MVC> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
<MVC extends TypedMVCGroup> |
withMVCGroup(java.lang.Class<? extends MVC> mvcType,
java.lang.String mvcId,
java.util.Map<java.lang.String,java.lang.Object> args,
TypedMVCGroupFunction<MVC> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
<MVC extends TypedMVCGroup> |
withMVCGroup(java.lang.Class<? extends MVC> mvcType,
java.lang.String mvcId,
TypedMVCGroupFunction<MVC> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
<MVC extends TypedMVCGroup> |
withMVCGroup(java.lang.Class<? extends MVC> mvcType,
TypedMVCGroupFunction<MVC> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
<MVC extends TypedMVCGroup> |
withMVCGroup(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.Class<? extends MVC> mvcType,
java.lang.String mvcId,
TypedMVCGroupFunction<MVC> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
<MVC extends TypedMVCGroup> |
withMVCGroup(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.Class<? extends MVC> mvcType,
TypedMVCGroupFunction<MVC> handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
void |
withMVCGroup(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.String mvcType,
MVCGroupFunction handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
void |
withMVCGroup(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.String mvcType,
java.lang.String mvcId,
MVCGroupFunction handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
protected <M extends GriffonModel,V extends GriffonView,C extends GriffonController> |
withMVCGroup(MVCGroupConfiguration configuration,
java.lang.String mvcId,
java.util.Map<java.lang.String,java.lang.Object> args,
MVCFunction<M,V,C> handler) |
protected void |
withMVCGroup(MVCGroupConfiguration configuration,
java.lang.String mvcId,
java.util.Map<java.lang.String,java.lang.Object> args,
MVCGroupFunction handler) |
void |
withMVCGroup(java.lang.String mvcType,
java.util.Map<java.lang.String,java.lang.Object> args,
MVCGroupFunction handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
void |
withMVCGroup(java.lang.String mvcType,
MVCGroupFunction handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
void |
withMVCGroup(java.lang.String mvcType,
java.lang.String mvcId,
java.util.Map<java.lang.String,java.lang.Object> args,
MVCGroupFunction handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
void |
withMVCGroup(java.lang.String mvcType,
java.lang.String mvcId,
MVCGroupFunction handler)
Instantiates an MVC group of the specified type then destroys it after it has been handled.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroyMVCGroup
protected static final java.lang.String ERROR_MVCTYPE_BLANK
protected static final java.lang.String ERROR_MVCID_BLANK
protected static final java.lang.String ERROR_CONFIGURATION_NULL
protected static final java.lang.String ERROR_GROUP_NULL
protected static final java.lang.String ERROR_CONFIG_NULL
protected static final java.lang.String ERROR_ARGS_NULL
protected static final java.lang.String ERROR_NAME_BLANK
protected static final java.lang.String ERROR_TYPE_NULL
@Inject public AbstractMVCGroupManager(@Nonnull GriffonApplication application)
public GriffonApplication getApplication()
getApplication
in interface MVCGroupManager
@Nonnull public 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)
MVCGroupManager
newMVCGroupConfiguration
in interface MVCGroupManager
mvcType
- the name of the MVC groupmembers
- members of the groupconfig
- additional configuration required by the group@Nonnull public MVCGroup newMVCGroup(@Nonnull MVCGroupConfiguration configuration, @Nullable java.lang.String mvcId, @Nonnull java.util.Map<java.lang.String,java.lang.Object> members, @Nullable MVCGroup parentGroup)
MVCGroupManager
newMVCGroup
in interface MVCGroupManager
configuration
- the configuration of the groupmvcId
- the id to use for the groupmembers
- the instance members of the groupparentGroup
- the parent group (if any)@Nonnull public Context newContext(@Nullable MVCGroup parentGroup)
newContext
in interface MVCGroupManager
@Nonnull public java.util.Map<java.lang.String,MVCGroupConfiguration> getConfigurations()
getConfigurations
in interface MVCGroupManager
@Nonnull public java.util.Map<java.lang.String,MVCGroup> getGroups()
getGroups
in interface MVCGroupManager
@Nonnull public MVCGroupConfiguration findConfiguration(@Nonnull java.lang.String mvcType)
findConfiguration
in interface MVCGroupManager
@Nullable public MVCGroup findGroup(@Nonnull java.lang.String mvcId)
findGroup
in interface MVCGroupManager
@Nullable public MVCGroup getAt(@Nonnull java.lang.String mvcId)
getAt
in interface MVCGroupManager
public final void initialize(@Nonnull java.util.Map<java.lang.String,MVCGroupConfiguration> configurations)
MVCGroupManager
initialize
in interface MVCGroupManager
configurations
- available group configurationspublic void addConfiguration(@Nonnull MVCGroupConfiguration configuration)
addConfiguration
in interface MVCGroupManager
public void removeConfiguration(@Nonnull MVCGroupConfiguration configuration)
removeConfiguration
in interface MVCGroupManager
public void removeConfiguration(@Nonnull java.lang.String name)
removeConfiguration
in interface MVCGroupManager
protected void addGroup(@Nonnull MVCGroup group)
protected void removeGroup(@Nonnull MVCGroup group)
@Nonnull public final java.util.Map<java.lang.String,? extends GriffonModel> getModels()
MVCGroupManager
getModels
in interface MVCGroupManager
@Nonnull public final java.util.Map<java.lang.String,? extends GriffonView> getViews()
MVCGroupManager
getViews
in interface MVCGroupManager
@Nonnull public final java.util.Map<java.lang.String,? extends GriffonController> getControllers()
MVCGroupManager
getControllers
in interface MVCGroupManager
@Nonnull public MVCGroupConfiguration cloneMVCGroupConfiguration(@Nonnull java.lang.String mvcType, @Nonnull java.util.Map<java.lang.String,java.lang.Object> config)
MVCGroupManager
cloneMVCGroupConfiguration
in interface MVCGroupManager
mvcType
- the name of the configuration to cloneconfig
- additional config parameters to be set on the configuration@Nonnull protected java.util.List<? extends GriffonMvcArtifact> createMVC(@Nonnull MVCGroupConfiguration configuration, @Nullable java.lang.String mvcId, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args)
protected <M extends GriffonModel,V extends GriffonView,C extends GriffonController> void withMVCGroup(@Nonnull MVCGroupConfiguration configuration, @Nullable java.lang.String mvcId, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull MVCFunction<M,V,C> handler)
protected void withMVCGroup(@Nonnull MVCGroupConfiguration configuration, @Nullable java.lang.String mvcId, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull MVCGroupFunction handler)
@Nonnull protected abstract MVCGroup createMVCGroup(@Nonnull MVCGroupConfiguration configuration, @Nullable java.lang.String mvcId, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args)
protected abstract void doInitialize(@Nonnull java.util.Map<java.lang.String,MVCGroupConfiguration> configurations)
@Nonnull public MVCGroup createMVCGroup(@Nonnull java.lang.String mvcType)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
For example, with the following entry available in Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be created as follows
MVCGroup fooGroup = createMVCGroup('foo') assert (fooGroup.controller instanceof FooController)
createMVCGroup
in interface MVCHandler
mvcType
- the type of group to build.@Nonnull public MVCGroup createMVCGroup(@Nonnull java.lang.String mvcType, @Nonnull java.lang.String mvcId)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
For example, with the following entry available in Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be created as follows
MVCGroup fooGroup = createMVCGroup('foo', 'foo' + System.currentTimeMillis()) assert (fooGroup.controller instanceof FooController)MVC groups must have an unique name.
createMVCGroup
in interface MVCHandler
mvcType
- the type of group to build.mvcId
- the name to assign to the built group.@Nonnull public MVCGroup createMVCGroup(@Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull java.lang.String mvcType)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenarios
Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } bar { model = 'com.acme.FooModel' view = 'com.acme.BarView' controller = 'com.acme.BarController' } }Notice that groups "foo" and "bar share the same model type, We can make them share the same model instance by creating the groups in the following way:
MVCGroup fooGroup = createMVCGroup('foo') MVCGroup barGroup = createMVCGroup('bar', model: fooGroup.model) assert fooGroup.model == barGroup.model
createMVCGroup
in interface MVCHandler
args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.mvcType
- the type of group to build.@Nonnull public MVCGroup createMVCGroup(@Nonnull java.lang.String mvcType, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenarios
Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } bar { model = 'com.acme.FooModel' view = 'com.acme.BarView' controller = 'com.acme.BarController' } }Notice that groups "foo" and "bar share the same model type, We can make them share the same model instance by creating the groups in the following way:
MVCGroup fooGroup = createMVCGroup('foo') MVCGroup barGroup = createMVCGroup('bar', model: fooGroup.model) assert fooGroup.model == barGroup.model
createMVCGroup
in interface MVCHandler
mvcType
- the type of group to build.args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.@Nonnull public MVCGroup createMVCGroup(@Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull java.lang.String mvcType, @Nonnull java.lang.String mvcId)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenarios
Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }We can create two instances of the same group that share the same model instance in the following way:
MVCGroup fooGroup1 = createMVCGroup('foo', 'foo1') MVCGroup fooGroup2 = createMVCGroup('foo', 'foo2', model: fooGroup1.model) assert fooGroup1.model == fooGroup2.modelMVC groups must have an unique name.
createMVCGroup
in interface MVCHandler
args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.mvcType
- the type of group to build.mvcId
- the name to assign to the built group.@Nonnull public MVCGroup createMVCGroup(@Nonnull java.lang.String mvcType, @Nonnull java.lang.String mvcId, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenarios
Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }We can create two instances of the same group that share the same model instance in the following way:
MVCGroup fooGroup1 = createMVCGroup('foo', 'foo1') MVCGroup fooGroup2 = createMVCGroup('foo', 'foo2', model: fooGroup1.model) assert fooGroup1.model == fooGroup2.modelMVC groups must have an unique name.
createMVCGroup
in interface MVCHandler
mvcType
- the type of group to build.mvcId
- the name to assign to the built group.args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.@Nonnull public <MVC extends TypedMVCGroup> MVC createMVCGroup(@Nonnull java.lang.Class<? extends MVC> mvcType)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
For example, with the following entry available in Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be created as follows
FooMVCGroup fooGroup = createMVCGroup(FooMVCGroup) assert (fooGroup.controller instanceof FooController)
createMVCGroup
in interface MVCHandler
mvcType
- the type of group to build.@Nonnull public <MVC extends TypedMVCGroup> MVC createMVCGroup(@Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull java.lang.String mvcId)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
For example, with the following entry available in Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be created as follows
FooMVCGroup fooGroup = createMVCGroup(FooMVCGroup, 'foo' + System.currentTimeMillis()) assert (fooGroup.controller instanceof FooController)MVC groups must have an unique name.
createMVCGroup
in interface MVCHandler
mvcType
- the type of group to build.mvcId
- the name to assign to the built group.@Nonnull public <MVC extends TypedMVCGroup> MVC createMVCGroup(@Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull java.lang.Class<? extends MVC> mvcType)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenarios
Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } bar { model = 'com.acme.FooModel' view = 'com.acme.BarView' controller = 'com.acme.BarController' } }Notice that groups "foo" and "bar share the same model type, We can make them share the same model instance by creating the groups in the following way:
FooMVCGroup fooGroup = createMVCGroup(FooMVCGroup) BarMVCGroup barGroup = createMVCGroup(BarMVCGroup, model: fooGroup.model) assert fooGroup.model == barGroup.model
createMVCGroup
in interface MVCHandler
args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.mvcType
- the type of group to build.@Nonnull public <MVC extends TypedMVCGroup> MVC createMVCGroup(@Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenarios
Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } bar { model = 'com.acme.FooModel' view = 'com.acme.BarView' controller = 'com.acme.BarController' } }Notice that groups "foo" and "bar share the same model type, We can make them share the same model instance by creating the groups in the following way:
FooMVCGroup fooGroup = createMVCGroup(FooMVCGroup) BarMVCGroup barGroup = createMVCGroup(BarMVCGroup, model: fooGroup.model) assert fooGroup.model == barGroup.model
createMVCGroup
in interface MVCHandler
mvcType
- the type of group to build.args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.@Nonnull public <MVC extends TypedMVCGroup> MVC createMVCGroup(@Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull java.lang.String mvcId)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenarios
Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }We can create two instances of the same group that share the same model instance in the following way:
FooMVCGroup fooGroup1 = createMVCGroup(FooMVCGroup, 'foo1') FooMVCGroup fooGroup2 = createMVCGroup(FooMVCGroup, 'foo2', model: fooGroup1.model) assert fooGroup1.model == fooGroup2.modelMVC groups must have an unique name.
createMVCGroup
in interface MVCHandler
args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.mvcType
- the type of group to build.mvcId
- the name to assign to the built group.@Nonnull public <MVC extends TypedMVCGroup> MVC createMVCGroup(@Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull java.lang.String mvcId, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenarios
Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }We can create two instances of the same group that share the same model instance in the following way:
FooMVCGroup fooGroup1 = createMVCGroup(FooMVCGroup, 'foo1') FooMVCGroup fooGroup2 = createMVCGroup(FooMVCGroup, 'foo2', model: fooGroup1.model) assert fooGroup1.model == fooGroup2.modelMVC groups must have an unique name.
createMVCGroup
in interface MVCHandler
mvcType
- the type of group to build.mvcId
- the name to assign to the built group.args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.@Nonnull public java.util.List<? extends GriffonMvcArtifact> createMVC(@Nonnull java.lang.String mvcType)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
For example, with the following entry available in Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be created as follows
def (m, v, c) = createMVC('foo') assert (c instanceof FooController)
createMVC
in interface MVCHandler
mvcType
- the type of group to build.@Nonnull public java.util.List<? extends GriffonMvcArtifact> createMVC(@Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull java.lang.String mvcType)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenarios
Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } bar { model = 'com.acme.FooModel' view = 'com.acme.BarView' controller = 'com.acme.BarController' } }Notice that groups "foo" and "bar share the same model type, We can make them share the same model instance by creating the groups in the following way:
def (m1, v1, c1) = createMVC('foo') def (m2, v2, c2) = createMVC('bar', model: m1) assert fm1 == m2
createMVC
in interface MVCHandler
args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.mvcType
- the type of group to build.@Nonnull public java.util.List<? extends GriffonMvcArtifact> createMVC(@Nonnull java.lang.String mvcType, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenarios
Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } bar { model = 'com.acme.FooModel' view = 'com.acme.BarView' controller = 'com.acme.BarController' } }Notice that groups "foo" and "bar share the same model type, We can make them share the same model instance by creating the groups in the following way:
def (m1, v1, c1) = createMVC('foo') def (m2, v2, c2) = createMVC('bar', model: m1) assert fm1 == m2
createMVC
in interface MVCHandler
mvcType
- the type of group to build.args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.@Nonnull public java.util.List<? extends GriffonMvcArtifact> createMVC(@Nonnull java.lang.String mvcType, @Nonnull java.lang.String mvcId)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
For example, with the following entry available in Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be created as follows
def (m, v, c) = createMVC('foo', 'foo' + System.currentTimeMillis()) assert (c instanceof FooController)MVC groups must have an unique name.
createMVC
in interface MVCHandler
mvcType
- the type of group to build.mvcId
- the name to assign to the built group.@Nonnull public java.util.List<? extends GriffonMvcArtifact> createMVC(@Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull java.lang.String mvcType, @Nonnull java.lang.String mvcId)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenarios
Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }We can create two instances of the same group that share the same model instance in the following way:
def (m1, v1, c1) = createMVC('foo', 'foo1') def (m2, v2, c2) = createMVC('foo', 'foo2', model: m1) assert fm1 == m2MVC groups must have an unique name.
createMVC
in interface MVCHandler
args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.mvcType
- the type of group to build.mvcId
- the name to assign to the built group.@Nonnull public java.util.List<? extends GriffonMvcArtifact> createMVC(@Nonnull java.lang.String mvcType, @Nonnull java.lang.String mvcId, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenarios
Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }We can create two instances of the same group that share the same model instance in the following way:
def (m1, v1, c1) = createMVC('foo', 'foo1') def (m2, v2, c2) = createMVC('foo', 'foo2', model: m1) assert fm1 == m2MVC groups must have an unique name.
createMVC
in interface MVCHandler
mvcType
- the type of group to build.mvcId
- the name to assign to the built group.args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.@Nonnull public <MVC extends TypedMVCGroup> java.util.List<? extends GriffonMvcArtifact> createMVC(@Nonnull java.lang.Class<? extends MVC> mvcType)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
For example, with the following entry available in Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be created as follows
def (m, v, c) = createMVC(FooMVCGroup) assert (c instanceof FooController)
createMVC
in interface MVCHandler
mvcType
- the type of group to build.@Nonnull public <MVC extends TypedMVCGroup> java.util.List<? extends GriffonMvcArtifact> createMVC(@Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull java.lang.Class<? extends MVC> mvcType)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenarios
Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } bar { model = 'com.acme.FooModel' view = 'com.acme.BarView' controller = 'com.acme.BarController' } }Notice that groups "foo" and "bar share the same model type, We can make them share the same model instance by creating the groups in the following way:
def (m1, v1, c1) = createMVC(FooMVCGroup) def (m2, v2, c2) = createMVC(BarMVCGroup, model: m1) assert fm1 == m2
createMVC
in interface MVCHandler
args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.mvcType
- the type of group to build.@Nonnull public <MVC extends TypedMVCGroup> java.util.List<? extends GriffonMvcArtifact> createMVC(@Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenarios
Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } bar { model = 'com.acme.FooModel' view = 'com.acme.BarView' controller = 'com.acme.BarController' } }Notice that groups "foo" and "bar share the same model type, We can make them share the same model instance by creating the groups in the following way:
def (m1, v1, c1) = createMVC(FooMVCGroup) def (m2, v2, c2) = createMVC(BarMVCGroup, model: m1) assert fm1 == m2
createMVC
in interface MVCHandler
mvcType
- the type of group to build.args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.@Nonnull public <MVC extends TypedMVCGroup> java.util.List<? extends GriffonMvcArtifact> createMVC(@Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull java.lang.String mvcId)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
For example, with the following entry available in Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be created as follows
def (m, v, c) = createMVC(FooMVCGroup, 'foo' + System.currentTimeMillis()) assert (c instanceof FooController)MVC groups must have an unique name.
createMVC
in interface MVCHandler
mvcType
- the type of group to build.mvcId
- the name to assign to the built group.@Nonnull public <MVC extends TypedMVCGroup> java.util.List<? extends GriffonMvcArtifact> createMVC(@Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull java.lang.String mvcId)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenarios
Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }We can create two instances of the same group that share the same model instance in the following way:
def (m1, v1, c1) = createMVC(FooMVCGroup, 'foo1') def (m2, v2, c2) = createMVC(FooMVCGroup, 'foo2', model: m1) assert fm1 == m2MVC groups must have an unique name.
createMVC
in interface MVCHandler
args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.mvcType
- the type of group to build.mvcId
- the name to assign to the built group.@Nonnull public <MVC extends TypedMVCGroup> java.util.List<? extends GriffonMvcArtifact> createMVC(@Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull java.lang.String mvcId, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args)
MVCHandler
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenarios
Config.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }We can create two instances of the same group that share the same model instance in the following way:
def (m1, v1, c1) = createMVC(FooMVCGroup, 'foo1') def (m2, v2, c2) = createMVC(FooMVCGroup, 'foo2', model: m1) assert fm1 == m2MVC groups must have an unique name.
createMVC
in interface MVCHandler
mvcType
- the type of group to build.mvcId
- the name to assign to the built group.args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.public <M extends GriffonModel,V extends GriffonView,C extends GriffonController> void withMVC(@Nonnull java.lang.String mvcType, @Nonnull MVCFunction<M,V,C> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
For example, with the following entry available inConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
withMVC("foo", new MVCFunction<FooModel, FooView, FooController>() { public void call(FooModel m, FooView v, FooController c) { m.setSomeProperty(someValue); c.invokeAnAction(); } });
withMVC
in interface MVCHandler
mvcType
- the type of group to build.handler
- a code block used to configure and manage the instantiated grouppublic <M extends GriffonModel,V extends GriffonView,C extends GriffonController> void withMVC(@Nonnull java.lang.String mvcType, @Nonnull java.lang.String mvcId, @Nonnull MVCFunction<M,V,C> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
For example, with the following entry available inConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
withMVC("foo", "foo1", new MVCFunction<FooModel, FooView, FooController>() { public void call(FooModel m, FooView v, FooController c) { m.setSomeProperty(someValue); c.invokeAnAction(); } });MVC groups must have an unique name.
withMVC
in interface MVCHandler
mvcType
- the type of group to build.mvcId
- the name to assign to the built group.handler
- a code block used to configure and manage the instantiated grouppublic <M extends GriffonModel,V extends GriffonView,C extends GriffonController> void withMVC(@Nonnull java.lang.String mvcType, @Nonnull java.lang.String mvcId, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull MVCFunction<M,V,C> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenariosConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
MapMVC groups must have an unique name.map = ... // initialized elsewhere withMVC("foo", "foo1", map, new MVCFunction<FooModel, FooView, FooController>() { public void call(FooModel m, FooView v, FooController c) { m.setSomeProperty(someValue); c.invokeAnAction(); } });
withMVC
in interface MVCHandler
mvcType
- the type of group to build.mvcId
- the name to assign to the built group.args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.handler
- a code block used to configure and manage the instantiated grouppublic <M extends GriffonModel,V extends GriffonView,C extends GriffonController> void withMVC(@Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull java.lang.String mvcType, @Nonnull java.lang.String mvcId, @Nonnull MVCFunction<M,V,C> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenariosConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
MapMVC groups must have an unique name.map = ... // initialized elsewhere withMVC("foo", "foo1", map, new MVCFunction<FooModel, FooView, FooController>() { public void call(FooModel m, FooView v, FooController c) { m.setSomeProperty(someValue); c.invokeAnAction(); } });
withMVC
in interface MVCHandler
args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.mvcType
- the type of group to build.mvcId
- the name to assign to the built group.handler
- a code block used to configure and manage the instantiated grouppublic <M extends GriffonModel,V extends GriffonView,C extends GriffonController> void withMVC(@Nonnull java.lang.String mvcType, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull MVCFunction<M,V,C> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenariosConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
Mapmap = ... // initialized elsewhere withMVC("foo", map, new MVCFunction<FooModel, FooView, FooController>() { public void call(FooModel m, FooView v, FooController c) { m.setSomeProperty(someValue); c.invokeAnAction(); } });
withMVC
in interface MVCHandler
mvcType
- the type of group to build.args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.handler
- a code block used to configure and manage the instantiated grouppublic <M extends GriffonModel,V extends GriffonView,C extends GriffonController> void withMVC(@Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull java.lang.String mvcType, @Nonnull MVCFunction<M,V,C> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenariosConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
Mapmap = ... // initialized elsewhere withMVC("foo", map, new MVCFunction<FooModel, FooView, FooController>() { public void call(FooModel m, FooView v, FooController c) { m.setSomeProperty(someValue); c.invokeAnAction(); } });
withMVC
in interface MVCHandler
args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.mvcType
- the type of group to build.handler
- a code block used to configure and manage the instantiated grouppublic <MVC extends TypedMVCGroup,M extends GriffonModel,V extends GriffonView,C extends GriffonController> void withMVC(@Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull MVCFunction<M,V,C> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
For example, with the following entry available inConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
withMVC(FooMVCGroup.class, new MVCFunction<FooModel, FooView, FooController>() { public void call(FooModel m, FooView v, FooController c) { m.setSomeProperty(someValue); c.invokeAnAction(); } });
withMVC
in interface MVCHandler
mvcType
- the type of group to build.handler
- a code block used to configure and manage the instantiated grouppublic <MVC extends TypedMVCGroup,M extends GriffonModel,V extends GriffonView,C extends GriffonController> void withMVC(@Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull java.lang.String mvcId, @Nonnull MVCFunction<M,V,C> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
For example, with the following entry available inConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
withMVC(FooMVCGroup.class, "foo1", new MVCFunction<FooModel, FooView, FooController>() { public void call(FooModel m, FooView v, FooController c) { m.setSomeProperty(someValue); c.invokeAnAction(); } });MVC groups must have an unique name.
withMVC
in interface MVCHandler
mvcType
- the type of group to build.mvcId
- the name to assign to the built group.handler
- a code block used to configure and manage the instantiated grouppublic <MVC extends TypedMVCGroup,M extends GriffonModel,V extends GriffonView,C extends GriffonController> void withMVC(@Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull java.lang.String mvcId, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull MVCFunction<M,V,C> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenariosConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
MapMVC groups must have an unique name.map = ... // initialized elsewhere withMVC(FooMVCGroup.class, "foo1", map, new MVCFunction<FooModel, FooView, FooController>() { public void call(FooModel m, FooView v, FooController c) { m.setSomeProperty(someValue); c.invokeAnAction(); } });
withMVC
in interface MVCHandler
mvcType
- the type of group to build.mvcId
- the name to assign to the built group.args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.handler
- a code block used to configure and manage the instantiated grouppublic <MVC extends TypedMVCGroup,M extends GriffonModel,V extends GriffonView,C extends GriffonController> void withMVC(@Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull java.lang.String mvcId, @Nonnull MVCFunction<M,V,C> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenariosConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
MapMVC groups must have an unique name.map = ... // initialized elsewhere withMVC(FooMVCGroup.class, "foo1", map, new MVCFunction<FooModel, FooView, FooController>() { public void call(FooModel m, FooView v, FooController c) { m.setSomeProperty(someValue); c.invokeAnAction(); } });
withMVC
in interface MVCHandler
args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.mvcType
- the type of group to build.mvcId
- the name to assign to the built group.handler
- a code block used to configure and manage the instantiated grouppublic <MVC extends TypedMVCGroup,M extends GriffonModel,V extends GriffonView,C extends GriffonController> void withMVC(@Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull MVCFunction<M,V,C> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenariosConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
Mapmap = ... // initialized elsewhere withMVC(FooMVCGroup.class, map, new MVCFunction<FooModel, FooView, FooController>() { public void call(FooModel m, FooView v, FooController c) { m.setSomeProperty(someValue); c.invokeAnAction(); } });
withMVC
in interface MVCHandler
mvcType
- the type of group to build.args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.handler
- a code block used to configure and manage the instantiated grouppublic <MVC extends TypedMVCGroup,M extends GriffonModel,V extends GriffonView,C extends GriffonController> void withMVC(@Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull MVCFunction<M,V,C> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenariosConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
Mapmap = ... // initialized elsewhere withMVC(FooMVCGroup.class, map, new MVCFunction<FooModel, FooView, FooController>() { public void call(FooModel m, FooView v, FooController c) { m.setSomeProperty(someValue); c.invokeAnAction(); } });
withMVC
in interface MVCHandler
args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.mvcType
- the type of group to build.handler
- a code block used to configure and manage the instantiated grouppublic void withMVCGroup(@Nonnull java.lang.String mvcType, @Nonnull MVCGroupFunction handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
For example, with the following entry available inConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
withMVCGroup("foo", new MVCGroupFunction() { public void call(MVCGroup group) { group.getModel().setSomeProperty(someValue); group.getController().invokeAnAction(); } });
withMVCGroup
in interface MVCHandler
mvcType
- the type of group to build.handler
- a code block used to configure and manage the instantiated grouppublic void withMVCGroup(@Nonnull java.lang.String mvcType, @Nonnull java.lang.String mvcId, @Nonnull MVCGroupFunction handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
For example, with the following entry available inConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
withMVCGroup("foo", "foo1", new MVCGroupFunction() { public void call(MVCGroup group) { group.getModel().setSomeProperty(someValue); group.getController().invokeAnAction(); } });MVC groups must have an unique name.
withMVCGroup
in interface MVCHandler
mvcType
- the type of group to build.mvcId
- the name to assign to the built group.handler
- a code block used to configure and manage the instantiated grouppublic void withMVCGroup(@Nonnull java.lang.String mvcType, @Nonnull java.lang.String mvcId, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull MVCGroupFunction handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenariosConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
MapMVC groups must have an unique name.map = ... // initialized elsewhere withMVCGroup("foo", "foo1", map, new MVCGroupFunction() { public void call(MVCGroup group) { group.getModel().setSomeProperty(someValue); group.getController().invokeAnAction(); } });
withMVCGroup
in interface MVCHandler
mvcType
- the type of group to build.mvcId
- the name to assign to the built group.args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.handler
- a code block used to configure and manage the instantiated grouppublic void withMVCGroup(@Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull java.lang.String mvcType, @Nonnull java.lang.String mvcId, @Nonnull MVCGroupFunction handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenariosConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
MapMVC groups must have an unique name.map = ... // initialized elsewhere withMVCGroup("foo", "foo1", map, new MVCGroupFunction() { public void call(MVCGroup group) { group.getModel().setSomeProperty(someValue); group.getController().invokeAnAction(); } });
withMVCGroup
in interface MVCHandler
args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.mvcType
- the type of group to build.mvcId
- the name to assign to the built group.handler
- a code block used to configure and manage the instantiated grouppublic void withMVCGroup(@Nonnull java.lang.String mvcType, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull MVCGroupFunction handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenariosConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
Mapmap = ... // initialized elsewhere withMVCGroup("foo", map, new MVCGroupFunction() { public void call(MVCGroup group) { group.getModel().setSomeProperty(someValue); group.getController().invokeAnAction(); } });
withMVCGroup
in interface MVCHandler
mvcType
- the type of group to build.args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.handler
- a code block used to configure and manage the instantiated grouppublic void withMVCGroup(@Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull java.lang.String mvcType, @Nonnull MVCGroupFunction handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenariosConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
Mapmap = ... // initialized elsewhere withMVCGroup("foo", map, new MVCGroupFunction() { public void call(MVCGroup group) { group.getModel().setSomeProperty(someValue); group.getController().invokeAnAction(); } });
withMVCGroup
in interface MVCHandler
args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.mvcType
- the type of group to build.handler
- a code block used to configure and manage the instantiated grouppublic <MVC extends TypedMVCGroup> void withMVCGroup(@Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull TypedMVCGroupFunction<MVC> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
For example, with the following entry available inConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
withMVCGroup(FooMVCGroup.class, new TypedMVCGroupFunction<>() { public void call(MVC group) { group.getModel().setSomeProperty(someValue); group.getController().invokeAnAction(); } });
withMVCGroup
in interface MVCHandler
mvcType
- the type of group to build.handler
- a code block used to configure and manage the instantiated grouppublic <MVC extends TypedMVCGroup> void withMVCGroup(@Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull java.lang.String mvcId, @Nonnull TypedMVCGroupFunction<MVC> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
For example, with the following entry available inConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
withMVCGroup(FooMVCGroup.class, "foo1", new TypedMVCGroupFunction<>() { public void call(MVC group) { group.getModel().setSomeProperty(someValue); group.getController().invokeAnAction(); } });MVC groups must have an unique name.
withMVCGroup
in interface MVCHandler
mvcType
- the type of group to build.mvcId
- the name to assign to the built group.handler
- a code block used to configure and manage the instantiated grouppublic <MVC extends TypedMVCGroup> void withMVCGroup(@Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull java.lang.String mvcId, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull TypedMVCGroupFunction<MVC> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenariosConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
MapMVC groups must have an unique name.map = ... // initialized elsewhere withMVCGroup(FooMVCGroup.class, "foo1", map, new TypedMVCGroupFunction<>() { public void call(MVC group) { group.getModel().setSomeProperty(someValue); group.getController().invokeAnAction(); } });
withMVCGroup
in interface MVCHandler
mvcType
- the type of group to build.mvcId
- the name to assign to the built group.args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.handler
- a code block used to configure and manage the instantiated grouppublic <MVC extends TypedMVCGroup> void withMVCGroup(@Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull java.lang.String mvcId, @Nonnull TypedMVCGroupFunction<MVC> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenariosConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
MapMVC groups must have an unique name.map = ... // initialized elsewhere withMVCGroup(FooMVCGroup.class, "foo1", map, new TypedMVCGroupFunction<>() { public void call(MVC group) { group.getModel().setSomeProperty(someValue); group.getController().invokeAnAction(); } });
withMVCGroup
in interface MVCHandler
args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.mvcType
- the type of group to build.mvcId
- the name to assign to the built group.handler
- a code block used to configure and manage the instantiated grouppublic <MVC extends TypedMVCGroup> void withMVCGroup(@Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull TypedMVCGroupFunction<MVC> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenariosConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
Mapmap = ... // initialized elsewhere withMVCGroup(FooMVCGroup.class, map, new TypedMVCGroupFunction<>() { public void call(MVC group) { group.getModel().setSomeProperty(someValue); group.getController().invokeAnAction(); } });
withMVCGroup
in interface MVCHandler
mvcType
- the type of group to build.args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.handler
- a code block used to configure and manage the instantiated grouppublic <MVC extends TypedMVCGroup> void withMVCGroup(@Nonnull java.util.Map<java.lang.String,java.lang.Object> args, @Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull TypedMVCGroupFunction<MVC> handler)
MVCHandler
This method is of particular interest when working with short lived MVC groups such as those used to build dialogs.
MVC groups must be previously configured with the application's metadata before they can be used. This registration process usually takes place automatically at boot time. The type of the group can be normally found in the application's configuration file.
The args Map can contain any value that will be used in one of the following scenariosConfig.groovy
mvcGroups { foo { model = 'com.acme.FooModel' view = 'com.acme.FooView' controller = 'com.acme.FooController' } }An instance of the "foo" group can be used as follows
Mapmap = ... // initialized elsewhere withMVCGroup(FooMVCGroup.class, map, new TypedMVCGroupFunction<>() { public void call(MVC group) { group.getModel().setSomeProperty(someValue); group.getController().invokeAnAction(); } });
withMVCGroup
in interface MVCHandler
args
- any useful values that can be set as properties on each MVC member or that
identify a member that can be shared with other groups.mvcType
- the type of group to build.handler
- a code block used to configure and manage the instantiated group@Nonnull public <C extends GriffonController> C getController(@Nonnull java.lang.String name, @Nonnull java.lang.Class<C> type) throws ArtifactNotFoundException
MVCGroupManager
getController
in interface MVCGroupManager
name
- the name of the group that holds the controllertype
- the type of the controllerArtifactNotFoundException
- if the named controller could not be found@Nonnull public <M extends GriffonModel> M getModel(@Nonnull java.lang.String name, @Nonnull java.lang.Class<M> type) throws ArtifactNotFoundException
MVCGroupManager
getModel
in interface MVCGroupManager
name
- the name of the group that holds the modeltype
- the type of the modelArtifactNotFoundException
- if the named model could not be found@Nonnull public <V extends GriffonView> V getView(@Nonnull java.lang.String name, @Nonnull java.lang.Class<V> type) throws ArtifactNotFoundException
MVCGroupManager
getView
in interface MVCGroupManager
name
- the name of the group that holds the viewtype
- the type of the viewArtifactNotFoundException
- if the named view could not be found@Nullable public <C extends GriffonController> C findController(@Nonnull java.lang.String name, @Nonnull java.lang.Class<C> type)
MVCGroupManager
findController
in interface MVCGroupManager
name
- the name of the group that holds the controllertype
- the type of the controller@Nullable public <M extends GriffonModel> M findModel(@Nonnull java.lang.String name, @Nonnull java.lang.Class<M> type)
MVCGroupManager
findModel
in interface MVCGroupManager
name
- the name of the group that holds the modeltype
- the type of the model@Nullable public <V extends GriffonView> V findView(@Nonnull java.lang.String name, @Nonnull java.lang.Class<V> type)
MVCGroupManager
findView
in interface MVCGroupManager
name
- the name of the group that holds the viewtype
- the type of the view@Nonnull protected <MVC extends TypedMVCGroup> java.lang.String nameOf(@Nonnull java.lang.Class<? extends MVC> mvcType)
@Nonnull protected <MVC extends TypedMVCGroup> MVC typedMvcGroup(@Nonnull java.lang.Class<? extends MVC> mvcType, @Nonnull MVCGroup mvcGroup)