public abstract class AbstractMVCGroupConfiguration extends Object implements MVCGroupConfiguration
MVCGroupConfiguration
interfaceModifier 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()
MVCGroupConfiguration
getMvcType
in interface MVCGroupConfiguration
@Nonnull public Map<String,String> getMembers()
MVCGroupConfiguration
getMembers
in interface MVCGroupConfiguration
@Nonnull public Map<String,Object> getConfig()
MVCGroupConfiguration
getConfig
in interface MVCGroupConfiguration
@Nonnull public MVCGroup create()
MVCGroupConfiguration
create
in interface MVCGroupConfiguration
@Nonnull public MVCGroup create(@Nullable String mvcId)
MVCGroupConfiguration
create
in interface MVCGroupConfiguration
mvcId
- the id to assign to this group@Nonnull public MVCGroup create(@Nonnull Map<String,Object> args)
MVCGroupConfiguration
create
in interface MVCGroupConfiguration
args
- additional arguments sent to each member when initializing@Nonnull public MVCGroup create(@Nullable String mvcId, @Nonnull Map<String,Object> args)
MVCGroupConfiguration
create
in interface MVCGroupConfiguration
mvcId
- the id to assign to this groupargs
- additional arguments sent to each member when initializing