|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.isdc.wro.model.factory.AbstractWroModelFactory ro.isdc.wro.extensions.model.factory.SmartWroModelFactory
public class SmartWroModelFactory
When used, this factory will make it possible to migrate easily from xml to groovy (or json) DSL seamlessly.
Field Summary | |
---|---|
static String |
ALIAS
Alias for this model factory used by provider. |
Constructor Summary | |
---|---|
SmartWroModelFactory()
|
Method Summary | |
---|---|
WroModel |
create()
|
static SmartWroModelFactory |
createFromStandaloneContext(StandaloneContext context)
Use this factory method when you want to use the SmartWroModelFactory in standalone (maven plugin) context. |
protected String |
getClassName(Class<? extends WroModelFactory> factoryClass)
|
protected String |
getDefaultModelFilename()
|
protected InputStream |
getModelResourceAsStream()
Override this method, in order to provide different xml definition file name. |
protected List<WroModelFactory> |
newWroModelFactoryFactoryList()
|
SmartWroModelFactory |
setAutoDetectWroFile(boolean autoDetectWroFile)
In order to keep backward compatibility for building the model . |
SmartWroModelFactory |
setFactoryList(List<WroModelFactory> factoryList)
|
SmartWroModelFactory |
setWroFile(File wroFile)
The file to use for creating model. |
Methods inherited from class ro.isdc.wro.model.factory.AbstractWroModelFactory |
---|
destroy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ALIAS
Constructor Detail |
---|
public SmartWroModelFactory()
Method Detail |
---|
public static SmartWroModelFactory createFromStandaloneContext(StandaloneContext context)
SmartWroModelFactory
in standalone (maven plugin) context.
The autoDetect flag is set to true if the wroFile path is the same as the default wro file name.
public SmartWroModelFactory setWroFile(File wroFile)
wroFile
- the wroFile to setprotected List<WroModelFactory> newWroModelFactoryFactoryList()
SmartWroModelFactory
.public WroModel create()
protected String getClassName(Class<? extends WroModelFactory> factoryClass)
public SmartWroModelFactory setFactoryList(List<WroModelFactory> factoryList)
factoryList
- the factoryList to setpublic SmartWroModelFactory setAutoDetectWroFile(boolean autoDetectWroFile)
autoDetectWroFile
- the autoDetectWroFile to setprotected String getDefaultModelFilename()
getDefaultModelFilename
in class AbstractWroModelFactory
protected InputStream getModelResourceAsStream() throws IOException
getModelResourceAsStream
in class AbstractWroModelFactory
IOException
- if the stream couldn't be read.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |