08 December 2014
The following dependencies have been upgraded
In previous versions instances of
MVCGroup would let you
MVCGroup instances, with no direct relationship
between the two unless explicitly stated (via an additional argument Map). This is no longer the case.
Child groups may now have a direct relationship with the parent group that created them. The
parentGroup property will be
set to the correct
MVCGroup instance in every group member
that defines it. Fine grained parent properties matching each member (such as
parentView) will also be set automatically. There are 2 sample applications that demonstrate this new feature in action
MVCGroupManager added getter/finder methods for
Controllers, Models and Views. Finder methods may return a null value if the matching artifact was not found. Getter
methods on the other hand will throw a
if the artifact could not be found.
MVCHandler interface has been altered to better handle MVCGroups.
Methods that sport
MVCGroup in their name work with instances (
MVCGroup, either they take such type as argument or return
instances of it. In contrast, methods that only have
MVC on their names (
withMC) work with individual
MVC members, such as Controller, Model and View. The following table summarizes the changes
|Old Name||New Name||Return Type||Args|
Finally, base artifacts such as Services can no longer create new MVCGroups by themselves, as this capability has been removed
from the base
GriffonAddons now have the capability of supplying
startup groups. These groups are initialized during the
STARTUP phase, right after the startup groups defined by the application.
allows you to load instances of a particular type as long as it conforms to the following rules
the type implements a well known interface.
the type is a concrete class.
the type is a public, non-static class.
the type provides a no-args constructor.
However sometimes you’d need to load types in a similar fashion without being forced by the last 3 rules, that is, you may
want to load a type that is an interface or that provides a constructor with one or more arguments. If you ever encounter
this scenario then annotate the classes/interfaces with
and load them using
For example the
griffon-mybatis-plugin loads instances of
using this mechanism.