ro.isdc.wro.extensions.model.factory
Class GroovyModelFactory

java.lang.Object
  extended by ro.isdc.wro.model.factory.AbstractWroModelFactory
      extended by ro.isdc.wro.extensions.model.factory.GroovyModelFactory
All Implemented Interfaces:
WroModelFactory, ObjectFactory<WroModel>

public class GroovyModelFactory
extends AbstractWroModelFactory

Creates WroModel from a groovy DSL.

This class is thread-safe because it doesn't have any state.

Since:
1.4.0
Author:
Romain Philibert

Field Summary
static String ALIAS
          Alias for this model factory used by provider.
 
Constructor Summary
GroovyModelFactory()
           
 
Method Summary
 WroModel create()
          
protected  String getDefaultModelFilename()
          
 
Methods inherited from class ro.isdc.wro.model.factory.AbstractWroModelFactory
destroy, getModelResourceAsStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALIAS

public static final String ALIAS
Alias for this model factory used by provider.

See Also:
Constant Field Values
Constructor Detail

GroovyModelFactory

public GroovyModelFactory()
Method Detail

create

public WroModel create()


getDefaultModelFilename

protected String getDefaultModelFilename()

Specified by:
getDefaultModelFilename in class AbstractWroModelFactory
Returns:
the default name of the file describing the wro model.


Copyright © 2008-2013. All Rights Reserved.