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

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

public class JsonModelFactory
extends AbstractWroModelFactory

TODO: validate duplicate groups & null resource type

Creates WroModel from a json.

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

Since:
1.3.6
Author:
Alex Objelean

Field Summary
static String ALIAS
          Alias for this model factory used by provider.
 
Constructor Summary
JsonModelFactory()
           
 
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

JsonModelFactory

public JsonModelFactory()
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.