public abstract class AbstractMVCGroupConfiguration extends Object implements MVCGroupConfiguration
MVCGroupConfiguration interface| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
config |
protected Map<String,String> |
members |
protected String |
mvcType |
| Constructor and Description |
|---|
AbstractMVCGroupConfiguration(String mvcType,
Map<String,String> members,
Map<String,Object> config) |
| Modifier and Type | Method and Description |
|---|---|
MVCGroup |
create()
Creates a new MVCGroup instance based in this configuration.
|
MVCGroup |
create(Map<String,Object> args)
Creates a new MVCGroup instance based in this configuration.
|
MVCGroup |
create(String mvcId)
Creates a new MVCGroup instance based in this configuration.
|
MVCGroup |
create(String mvcId,
Map<String,Object> args)
Creates a new MVCGroup instance based in this configuration.
|
Map<String,Object> |
getConfig()
Returns a Map with additional configuration for this group.
|
Map<String,String> |
getMembers()
Returns a Map with the names of all members keyed by type.
|
String |
getMvcType()
Returns the type of this group.
|
protected abstract MVCGroup |
instantiateMVCGroup(String mvcId,
Map<String,Object> args) |
String |
toString() |
protected final String mvcType
@Nonnull public String getMvcType()
MVCGroupConfigurationgetMvcType in interface MVCGroupConfiguration@Nonnull public Map<String,String> getMembers()
MVCGroupConfigurationgetMembers in interface MVCGroupConfiguration@Nonnull public Map<String,Object> getConfig()
MVCGroupConfigurationgetConfig in interface MVCGroupConfiguration@Nonnull public MVCGroup create()
MVCGroupConfigurationcreate in interface MVCGroupConfiguration@Nonnull public MVCGroup create(@Nullable String mvcId)
MVCGroupConfigurationcreate in interface MVCGroupConfigurationmvcId - the id to assign to this group@Nonnull public MVCGroup create(@Nonnull Map<String,Object> args)
MVCGroupConfigurationcreate in interface MVCGroupConfigurationargs - additional arguments sent to each member when initializing@Nonnull public MVCGroup create(@Nullable String mvcId, @Nonnull Map<String,Object> args)
MVCGroupConfigurationcreate in interface MVCGroupConfigurationmvcId - the id to assign to this groupargs - additional arguments sent to each member when initializing