concept component in category griffon

appears as: components, components, component, component
Griffon in Action

This is an excerpt from Manning's book Griffon in Action.

This chapter will get you started building Griffon applications. It lays out the core concepts and underlying designs behind the framework. You’ll start by getting your development environment set up and building your first Griffon application. You’ll build on your first application and create a simple tab-based editor with a menu and actions to open and save files. We’ll review some of the challenges with Java-based desktop development and see how Griffon approaches it. Along the way, we’ll discuss some of the core Griffon constructs, components, and philosophy.

That is precisely the power of the convention-over-configuration paradigm (http://en.wikipedia.org/wiki/Convention_over_configuration). A developer should be required to configure a particular aspect of a component or a set of components only when that configuration deviates from the standard. This means that if you stick to a well-known set of conventions, you’ll be able to create an application more quickly, because you’ll spend less time configuring it; it’s even possible to manage relationships between components this way as well.

By using the convention-over-configuration paradigm, Griffon can figure out a component’s responsibilities, inspecting its name, it location in the directory structure, and perhaps some of its properties. Say goodbye to long and painful XML configuration files; search no more for obscure configuration flags. All the configurable information you need to get your application off the ground is located close to the place where it’s needed.

Figure 4.1. Swing containers and components