Griffon 1.2.0

org.codehaus.griffon.runtime.core
[Java] Class DefaultMVCGroupManager

java.lang.Object
  org.codehaus.griffon.runtime.core.AbstractMVCGroupManager
      org.codehaus.griffon.runtime.core.DefaultMVCGroupManager

public class DefaultMVCGroupManager
extends AbstractMVCGroupManager

Base implementation of the MVCGroupManager interface.

Authors:
Andres Almiray
Since:
0.9.4


Field Summary
private static String CONFIG_KEY_COMPONENT

private static String CONFIG_KEY_EVENTS_DESTRUCTION

private static String CONFIG_KEY_EVENTS_INSTANTIATION

private static String CONFIG_KEY_EVENTS_LIFECYCLE

private static String CONFIG_KEY_EVENTS_LISTENER

private static Object[] EMPTY_ARGS

private static String KEY_BUILDER

private static String KEY_MVC_GROUP_DESTROY

private static String KEY_MVC_GROUP_INIT

private static Logger LOG

 
Fields inherited from class AbstractMVCGroupManager
LOG, app, configurations, groups, initialized, lock
 
Constructor Summary
DefaultMVCGroupManager(GriffonApplication app)

 
Method Summary
protected MVCGroup buildMVCGroup(MVCGroupConfiguration configuration, String mvcId, Map args)

protected void checkIdIsUnique(String mvcId, MVCGroupConfiguration configuration)

protected Map copyAndConfigureArguments(Map args, MVCGroupConfiguration configuration, String mvcId)

void destroyMVCGroup(String mvcId)

protected void doAddGroup(MVCGroup group)

protected void doInitialize(Map configurations)

protected void doRemoveGroup(MVCGroup group)

protected void fillReferencedProperties(MVCGroup group, Map args)

protected void initializeMembers(MVCGroup group, Map args)

protected Map instantiateMembers(Map klassMap, Map args, Map griffonClassMap, FactoryBuilderSupport builder)

protected boolean isConfigFlagEnabled(MVCGroupConfiguration configuration, String key)

protected Class loadClass(String className)

MVCGroup newMVCGroup(MVCGroupConfiguration configuration, String mvcId, Map members)

MVCGroupConfiguration newMVCGroupConfiguration(String mvcType, Map members, Map config)

protected void selectClassesPerMember(String memberType, String memberClassName, Map klassMap, Map metaClassMap, Map griffonClassMap)

 
Methods inherited from class AbstractMVCGroupManager
addConfiguration, addGroup, buildMVCGroup, buildMVCGroup, buildMVCGroup, buildMVCGroup, buildMVCGroup, buildMVCGroup, buildMVCGroup, cloneMVCGroupConfiguration, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, doInitialize, findConfiguration, findGroup, getApp, getAt, getBuilders, getConfigurations, getControllers, getGroups, getModels, getViews, initialize, removeConfiguration, removeConfiguration, removeGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup
 

Field Detail

CONFIG_KEY_COMPONENT

private static final String CONFIG_KEY_COMPONENT


CONFIG_KEY_EVENTS_DESTRUCTION

private static final String CONFIG_KEY_EVENTS_DESTRUCTION


CONFIG_KEY_EVENTS_INSTANTIATION

private static final String CONFIG_KEY_EVENTS_INSTANTIATION


CONFIG_KEY_EVENTS_LIFECYCLE

private static final String CONFIG_KEY_EVENTS_LIFECYCLE


CONFIG_KEY_EVENTS_LISTENER

private static final String CONFIG_KEY_EVENTS_LISTENER


EMPTY_ARGS

private static final Object[] EMPTY_ARGS


KEY_BUILDER

private static final String KEY_BUILDER


KEY_MVC_GROUP_DESTROY

private static final String KEY_MVC_GROUP_DESTROY


KEY_MVC_GROUP_INIT

private static final String KEY_MVC_GROUP_INIT


LOG

private static final Logger LOG


 
Constructor Detail

DefaultMVCGroupManager

public DefaultMVCGroupManager(GriffonApplication app)


 
Method Detail

buildMVCGroup

protected MVCGroup buildMVCGroup(MVCGroupConfiguration configuration, String mvcId, Map args)


checkIdIsUnique

protected void checkIdIsUnique(String mvcId, MVCGroupConfiguration configuration)


copyAndConfigureArguments

protected Map copyAndConfigureArguments(Map args, MVCGroupConfiguration configuration, String mvcId)


destroyMVCGroup

public void destroyMVCGroup(String mvcId)


doAddGroup

protected void doAddGroup(MVCGroup group)


doInitialize

protected void doInitialize(Map configurations)


doRemoveGroup

protected void doRemoveGroup(MVCGroup group)


fillReferencedProperties

protected void fillReferencedProperties(MVCGroup group, Map args)


initializeMembers

protected void initializeMembers(MVCGroup group, Map args)


instantiateMembers

protected Map instantiateMembers(Map klassMap, Map args, Map griffonClassMap, FactoryBuilderSupport builder)


isConfigFlagEnabled

protected boolean isConfigFlagEnabled(MVCGroupConfiguration configuration, String key)


loadClass

protected Class loadClass(String className)


newMVCGroup

public MVCGroup newMVCGroup(MVCGroupConfiguration configuration, String mvcId, Map members)


newMVCGroupConfiguration

public MVCGroupConfiguration newMVCGroupConfiguration(String mvcType, Map members, Map config)


selectClassesPerMember

protected void selectClassesPerMember(String memberType, String memberClassName, Map klassMap, Map metaClassMap, Map griffonClassMap)


 

Groovy Documentation