concept class in category griffon

This is an excerpt from Manning's book Griffon in Action.
Every piece of code you write in the Java language must be tied to a class, because Java is an object-oriented language that uses classes to define what an object can do.[3] Thus you must define a HelloWorld class. A class may define a method with a special signature (the main method) that’s used as the entry point of your program, so you define it as well. In that method, you place the code that fulfills the task. How would you explain to a person new to the Java language that they must know all these things (and a few more, including access modifiers and static versus instance class members) just to print a message to the console? All of this just to please the compiler and create a simple example. Wouldn’t it be easier if the compiler accepted something like the following?
The enabler closure is in place, but how is it invoked? This is where the @PropertyListener annotation
comes into play. The @Bindable annotation adds PropertyChangeSupport to all fields of the class. This means that when any of the field values change, a property change event is fired. The @PropertyListener is set up at the class level to listen to all property-change events associated with the class. When an event is fired, the enabler closure is invoked with the event. That’s pretty slick. You can also apply @PropertyListener locally to a property; this will have the same effect as registering a PropertyChangeListener that handles change events for that property alone. One thing to keep in mind when you’re using @PropertyListener in combination with closures like enabler is that it’s highly recommended to apply the private visibility modifier to them. This keeps the code from bleeding out to other classes. You may recall that everything in Groovy is public unless declared otherwise; the inner workings of such closures don’t concern classes other than the one that holds their definition.
When it comes to property access, the map class in Groovy is one of the classes that get the most special treatment from the runtime (see the following listing).
Listing 3.7. java.util.Map access in Groovy
Map map = [:] map.put('key', 'value') result = map.get('key') map['key'] = 'value' result = map['key'] map.key = 'value' result = map.keyA value stored in the map can be accessed in one of three ways: via the put(K, V) and get(K) methods, via subscript notation, and via property notation. The most interesting one for this discussion is the property notation. This makes a map look like a custom defined class without having to define the properties and methods of the class it’s implementing. The ability of a map to support both types of notations for property access pretty much makes the distinction between a POJO instance (or bean) and a map disappear. The same can be said in regard to property access from a bean’s point of view: both notations are supported.
comes into play. The @Bindable annotation adds PropertyChangeSupport to all fields of the class. This means that when any of the field values change, a property change event is fired. The @PropertyListener is set up at the class level to listen to all property-change events associated with the class. When an event is fired, the enabler closure is invoked with the event. That’s pretty slick. You can also apply @PropertyListener locally to a property; this will have the same effect as registering a PropertyChangeListener that handles change events for that property alone. One thing to keep in mind when you’re using @PropertyListener in combination with closures like enabler is that it’s highly recommended to apply the private visibility modifier to them. This keeps the code from bleeding out to other classes. You may recall that everything in Groovy is public unless declared otherwise; the inner workings of such closures don’t concern classes other than the one that holds their definition.