net.sourceforge.jfacets.groovy
Class GroovyFacetFactory

java.lang.Object
  extended by net.sourceforge.jfacets.groovy.GroovyFacetFactory
All Implemented Interfaces:
IFacetFactory

public class GroovyFacetFactory
extends Object
implements IFacetFactory

The GroovyFacetFactory, responsible of creating Groovy Facets.
A fallback factory can be specified, in case you want to use Groovy and regular facets in the same app.


Constructor Summary
GroovyFacetFactory()
           
 
Method Summary
 Object createFacet(FacetDescriptor d)
          Creates a GroovyFacet for passed descriptor.
 IFacetFactory getFallbackFactory()
           
 void setFallbackFactory(IFacetFactory fallbackFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyFacetFactory

public GroovyFacetFactory()
Method Detail

createFacet

public Object createFacet(FacetDescriptor d)
Creates a GroovyFacet for passed descriptor. Depending on what's in the script (a facet class declaration or just the execute script), creates and return the appropriate facet.

Specified by:
createFacet in interface IFacetFactory

getFallbackFactory

public IFacetFactory getFallbackFactory()

setFallbackFactory

public void setFallbackFactory(IFacetFactory fallbackFactory)


Copyright © 2012. All Rights Reserved.