(Quick Reference)

5.11 Manager Configuration - Reference Documentation

Authors: Andres Almiray

Version: 1.2.0

5.11 Manager Configuration

There are several components in a Griffon application that perform specific chores and tasks, they are usually know as managers. Some of them are the MVCGroupManager, ArtifactManager and AddonManager for example. All of these helper components are instantiated using default implementations chosen by the Griffon runtime, however developers may specify custom implementations, and in some cases, disable them altogether.

The following paragraphs enumerate the different managers and helpers that may be configured at booting time. Configuration is performed by adding the appropriate flag and value to Config.groovy.

LogManager

Discussed in: Logging.

Responsibility: configure logging subsystem.

Configuration flag: app.logManager.factory

Type: griffon.core.factories.LogManagerFactory

Default implementation: org.codehaus.griffon.runtime.core.factories.DefaultLogManagerFactory

EventRouter

Discussed in: Application Events.

Responsibility: publish events.

Configuration flag: app.eventRouter.factory

Type: griffon.core.factories.EventRouterFactory

Default implementation: org.codehaus.griffon.runtime.core.factories.DefaultEventRouterFactory

ArtifactManager

Discussed in: Artifact API.

Responsibility: keep track of GriffonArtifactClass and GriffonArtifact instances.

Configuration flag: app.artifactManager.factory

Type: griffon.core.factories.ArtifactManagerFactory

Default implementation: org.codehaus.griffon.runtime.core.factories.DefaultArtifactManagerFactory

AddonManager

Discussed in: Artifact API.

Responsibility: keep track of registered GriffonAddon instances.

Configuration flag: app.addonManager.factory

Type: griffon.core.factories.AddonManagerFactory

Default implementation: org.codehaus.griffon.runtime.core.factories.DefaultAddonManagerFactory

MVCGroupManager

Discussed in: MVCGroupManager.

Responsibility: create and destroy MVCGroup instances.

Configuration flag: app.mvcGroupManager.factory

Type: griffon.core.factories.MVCGroupManagerFactory

Default implementation: org.codehaus.griffon.runtime.core.factories.DefaultMVCGroupManagerFactory

MessageSource

Discussed in: The Messsage Source.

Responsibility: resolving internationalizable messages.

Configuration flag: app.messageSource.factory

Type: griffon.core.factories.MessageSourceFactory

Default implementation: org.codehaus.griffon.runtime.core.factories.DefaultMessageSourceFactory

ResourceResolver

Discussed in: Resolving Configured Resources.

Responsibility: resolving resources.

Configuration flag: app.resourceResolver.factory

Type: griffon.core.factories.ResourceResolverFactory

Default implementation: org.codehaus.griffon.runtime.core.factories.DefaultResourceResolverFactory

ResourcesInjector

Discussed in: Automatically Injected Resources.

Responsibility: injecting configured resources into freshly instantiated objects.

Configuration flag: app.resourceInjector.factory

Type: griffon.core.factories.ResourcesInjectorFactory

Default implementation: org.codehaus.griffon.runtime.core.factories.DefaultResourcesInjectorFactory

GriffonControllerActionManager

Discussed in: The Action Manager.

Responsibility: instantiate View friendly controller actions.

Configuration flag: app.actionManager.factory

Disabling flag: griffon.action.manager.disable

Type: griffon.core.factories.GriffonControllerActionManagerFactory

Default implementation: UI toolkit specific