ro.isdc.wro.model.factory
Class AbstractWroModelFactory
java.lang.Object
ro.isdc.wro.model.factory.AbstractWroModelFactory
- All Implemented Interfaces:
- WroModelFactory, ObjectFactory<WroModel>
- Direct Known Subclasses:
- GroovyModelFactory, JsonModelFactory, SmartWroModelFactory, XmlModelFactory
public abstract class AbstractWroModelFactory
- extends Object
- implements WroModelFactory
To be used by the implementations which load the model from a resource provided as stream.
- Since:
- 1.4.0
- Author:
- Alex Objelean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractWroModelFactory
public AbstractWroModelFactory()
getModelResourceAsStream
protected InputStream getModelResourceAsStream()
throws IOException
- Override this method, in order to provide different xml definition file name.
- Returns:
- stream of the xml representation of the model.
- Throws:
IOException
- if the stream couldn't be read.
getDefaultModelFilename
protected abstract String getDefaultModelFilename()
- Returns:
- the default name of the file describing the wro model.
destroy
public void destroy()
- Called to indicate that the factory is being taken out of service.
- Specified by:
destroy
in interface WroModelFactory
Copyright © 2008-2013. All Rights Reserved.