public class SmartWroModelFactory extends AbstractWroModelFactory
| Constructor and Description |
|---|
SmartWroModelFactory() |
| Modifier and Type | Method and Description |
|---|---|
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() |
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.
|
destroypublic 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 AbstractWroModelFactoryprotected InputStream getModelResourceAsStream() throws IOException
getModelResourceAsStream in class AbstractWroModelFactoryIOExceptionCopyright © 2008-2013. All Rights Reserved.