ro.isdc.wro.maven.plugin.manager.factory
Class ConfigurableWroManagerFactory
java.lang.Object
ro.isdc.wro.manager.factory.BaseWroManagerFactory
ro.isdc.wro.manager.factory.standalone.StandaloneWroManagerFactory
ro.isdc.wro.manager.factory.standalone.DefaultStandaloneContextAwareManagerFactory
ro.isdc.wro.manager.factory.standalone.ConfigurableStandaloneContextAwareManagerFactory
ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory
- All Implemented Interfaces:
- WroConfigurationChangeListener, StandaloneContextAware, WroManagerFactory, ExtraConfigFileAware, ObjectFactory<WroManager>
public class ConfigurableWroManagerFactory
- extends ConfigurableStandaloneContextAwareManagerFactory
- implements ExtraConfigFileAware
Default implementation which use a property file to read the pre & post processors to be used during processing.
- Since:
- 1.4.0
- Author:
- Alex Objelean
Methods inherited from class ro.isdc.wro.manager.factory.BaseWroManagerFactory |
addModelTransformer, create, destroy, newAuthorizationManager, newCacheKeyFactory, newCacheStrategy, newMetaDataFactory, newModelTransformers, onAfterInitializeManager, onCachePeriodChanged, onModelPeriodChanged, setCacheKeyFactory, setCacheStrategy, setGroupExtractor, setHashBuilder, setHashStrategy, setMetaDataFactory, setModelFactory, setModelTransformers, setNamingStrategy, setProcessorsFactory, setResourceAuthorizationManager, setUriLocatorFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurableWroManagerFactory
public ConfigurableWroManagerFactory()
initialize
public void initialize(StandaloneContext standaloneContext)
- Called by standalone process for initialization. It is responsibility of the implementor to take care of
StandaloneContext
in order to initialize the internals.
- Specified by:
initialize
in interface StandaloneContextAware
- Overrides:
initialize
in class DefaultStandaloneContextAwareManagerFactory
- Parameters:
standaloneContext
- StandaloneContext
holding properties associated with current context.
newModelFactory
protected WroModelFactory newModelFactory()
-
- Overrides:
newModelFactory
in class DefaultStandaloneContextAwareManagerFactory
- Returns:
WroModelFactory
implementation
newNamingStrategy
protected NamingStrategy newNamingStrategy()
-
- Overrides:
newNamingStrategy
in class BaseWroManagerFactory
- Returns:
- default
NamingStrategy
to be used by this WroManagerFactory
newHashStrategy
protected HashStrategy newHashStrategy()
-
- Overrides:
newHashStrategy
in class BaseWroManagerFactory
- Returns:
HashStrategy
instance.
createProperties
protected Properties createProperties()
-
- Overrides:
createProperties
in class ConfigurableStandaloneContextAwareManagerFactory
- Returns:
Properties
from where processors lookup will be performed. By default an empty Properties
object is returned.
setExtraConfigFile
public void setExtraConfigFile(File extraProperties)
- The implementation should handle the null case also.
- Specified by:
setExtraConfigFile
in interface ExtraConfigFileAware
- Parameters:
extraProperties
- the file containing extra configurations.
Copyright © 2008-2013. All Rights Reserved.