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