public class DefaultMVCGroupManager extends AbstractMVCGroupManager
MVCGroupManager
interface.Modifier and Type | Class and Description |
---|---|
protected static class |
DefaultMVCGroupManager.ClassHolder |
protected static class |
DefaultMVCGroupManager.FieldInjectionPoint |
protected static class |
DefaultMVCGroupManager.InjectionPoint |
protected static class |
DefaultMVCGroupManager.MethodInjectionPoint |
Modifier and Type | Field and Description |
---|---|
protected ApplicationClassLoader |
applicationClassLoader |
protected Instantiator |
instantiator |
ERROR_ARGS_NULL, ERROR_CONFIG_NULL, ERROR_CONFIGURATION_NULL, ERROR_GROUP_NULL, ERROR_MVCID_BLANK, ERROR_MVCTYPE_BLANK, ERROR_NAME_BLANK, ERROR_TYPE_NULL
Constructor and Description |
---|
DefaultMVCGroupManager(GriffonApplication application,
ApplicationClassLoader applicationClassLoader,
Instantiator instantiator) |
addConfiguration, addGroup, cloneMVCGroupConfiguration, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, findConfiguration, findController, findGroup, findModel, findView, getApplication, getAt, getConfigurations, getController, getControllers, getGroups, getModel, getModels, getView, getViews, initialize, newContext, newMVCGroup, newMVCGroupConfiguration, removeConfiguration, removeConfiguration, removeGroup, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup
protected final ApplicationClassLoader applicationClassLoader
protected final Instantiator instantiator
@Inject public DefaultMVCGroupManager(@Nonnull GriffonApplication application, @Nonnull ApplicationClassLoader applicationClassLoader, @Nonnull Instantiator instantiator)
protected void doInitialize(@Nonnull Map<String,MVCGroupConfiguration> configurations)
doInitialize
in class AbstractMVCGroupManager
@Nonnull protected MVCGroup createMVCGroup(@Nonnull MVCGroupConfiguration configuration, @Nullable String mvcId, @Nonnull Map<String,Object> args)
createMVCGroup
in class AbstractMVCGroupManager
protected void adjustMvcArguments(@Nonnull MVCGroup group, @Nonnull Map<String,Object> args)
@Nonnull protected String resolveMvcId(@Nonnull MVCGroupConfiguration configuration, @Nullable String mvcId)
protected void selectClassesPerMember(@Nonnull String memberType, @Nonnull String memberClassName, @Nonnull Map<String,DefaultMVCGroupManager.ClassHolder> classMap)
@Nonnull protected Map<String,Object> copyAndConfigureArguments(@Nonnull Map<String,Object> args, @Nonnull MVCGroupConfiguration configuration, @Nonnull String mvcId)
protected void checkIdIsUnique(@Nonnull String mvcId, @Nonnull MVCGroupConfiguration configuration)
@Nonnull protected Map<String,Object> instantiateMembers(@Nonnull Map<String,DefaultMVCGroupManager.ClassHolder> classMap, @Nonnull Map<String,Object> args)
protected void initializeMembers(@Nonnull MVCGroup group, @Nonnull Map<String,Object> args)
protected void initializeArtifactMember(@Nonnull MVCGroup group, @Nonnull String type, @Nonnull GriffonArtifact member, @Nonnull Map<String,Object> args)
protected void initializeNonArtifactMember(@Nonnull MVCGroup group, @Nonnull String type, @Nonnull Object member, @Nonnull Map<String,Object> args)
protected void fillReferencedProperties(@Nonnull MVCGroup group, @Nonnull Map<String,Object> args)
@Nonnull protected DefaultMVCGroupManager.InjectionPoint.Type resolveType(@Nonnull AnnotatedElement element)
protected boolean isContextual(AnnotatedElement element)
protected boolean isInjectable(AnnotatedElement element)
protected boolean isMvcMember(AnnotatedElement element)
public void destroyMVCGroup(@Nonnull String mvcId)
MVCHandler
ATTENTION: make sure to call the super implementation if you override this method otherwise group references will not be kept up to date.
mvcId
- the name of the group to destroy and dispose.protected void destroyMembers(@Nonnull MVCGroup group, boolean fireDestructionEvents)
protected void destroyArtifactMember(@Nonnull String type, @Nonnull GriffonArtifact member, boolean fireDestructionEvents)
protected void destroyContextualMemberProperties(@Nonnull String type, @Nonnull GriffonArtifact member)
protected void destroyNonArtifactMember(@Nonnull String type, @Nonnull Object member, boolean fireDestructionEvents)
protected boolean isConfigFlagEnabled(@Nonnull MVCGroupConfiguration configuration, @Nonnull String key)