org.formaria.scripts.groovy
Class GroovyBuilder

java.lang.Object
  extended by org.formaria.builder.AriaBuilder
      extended by org.formaria.scripts.groovy.GroovyBuilder
All Implemented Interfaces:
PageLoader

public class GroovyBuilder
extends AriaBuilder

An extension of AriaBuilder that loads a Groovy class as the source for the page's business logic instead of the default Java class.

Copyright (c) Formaria Ltd., 2008

License: see license.txt


Field Summary
 
Fields inherited from class org.formaria.builder.AriaBuilder
adapter, attributeSets, checkBoxGroup, componentFactory, currentAttributes, currentProject, customizer, DEFAULT_PAGE_CLASS, evaluator, eventHandler, includeFileName, layoutHelper, menuBar, packageName, page, rootPage, secondaryClassloader, validationFactories
 
Constructor Summary
GroovyBuilder(Project project)
          Construct an instance of the builder with the default package set to org.formaria.awt
 
Method Summary
protected  PageSupport loadClass(java.lang.String className)
          Loads a class as the basis for a page
 
Methods inherited from class org.formaria.builder.AriaBuilder
addBinding, addBindings, addComponent, addComponents, addEvent, addEvents, addHandler, addMenu, addScripts, addValidations, evaluateAttribute, evaluateAttributeAsString, getCurrentAttributes, getFactoryBinding, getInt, getMenuItem, getType, getValidationFactory, init, insertAttributes, loadAttributeSet, loadFrames, loadOtherElement, loadPage, loadSingleTarget, popIncludeReference, popRepeatReference, pushIncludeReference, pushRepeatReference, readPage, setAttributeEvaluator, setClassLoader, setComponentAttributes, setPackageName, setPage, setPageAttribute, setPageExtension, setPageName, setResourceBundle, setupPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyBuilder

public GroovyBuilder(Project project)
Construct an instance of the builder with the default package set to org.formaria.awt

Copyright (c) Formaria Ltd., 2008

License: see license.txt

Parameters:
project - the current project
Method Detail

loadClass

protected PageSupport loadClass(java.lang.String className)
                         throws java.lang.ClassNotFoundException,
                                java.lang.IllegalAccessException,
                                java.lang.InstantiationException
Loads a class as the basis for a page

Overrides:
loadClass in class AriaBuilder
Parameters:
className - the full class name
Returns:
an instance of the Page class or a derivative
Throws:
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException