ro.isdc.wro.maven.plugin.manager.factory
Class ConfigurableWroManagerFactory

java.lang.Object
  extended by ro.isdc.wro.manager.factory.BaseWroManagerFactory
      extended by ro.isdc.wro.manager.factory.standalone.StandaloneWroManagerFactory
          extended by ro.isdc.wro.manager.factory.standalone.DefaultStandaloneContextAwareManagerFactory
              extended by ro.isdc.wro.manager.factory.standalone.ConfigurableStandaloneContextAwareManagerFactory
                  extended by ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory
All Implemented Interfaces:
WroConfigurationChangeListener, CacheChangeCallbackAware, StandaloneContextAwareManagerFactory, WroManagerFactory, ExtraConfigFileAware, NamingStrategyAware, ObjectFactory<WroManager>

public class ConfigurableWroManagerFactory
extends ConfigurableStandaloneContextAwareManagerFactory
implements ExtraConfigFileAware

Default implementaiton which use a property file to read the pre & post processors to be used during processing.

Since:
1.4.0
Author:
Alex Objelean

Constructor Summary
ConfigurableWroManagerFactory()
           
 
Method Summary
protected  java.util.Map<java.lang.String,ResourcePostProcessor> createPostProcessorsMap()
           
protected  java.util.Map<java.lang.String,ResourcePreProcessor> createPreProcessorsMap()
           
protected  java.util.Properties createProperties()
          
 void initialize(StandaloneContext standaloneContext)
          
protected  WroModelFactory newModelFactory()
          
 void setExtraConfigFile(java.io.File extraProperties)
          The implementation should handle the null case also.
 
Methods inherited from class ro.isdc.wro.manager.factory.standalone.ConfigurableStandaloneContextAwareManagerFactory
newProcessorsFactory
 
Methods inherited from class ro.isdc.wro.manager.factory.standalone.DefaultStandaloneContextAwareManagerFactory
newGroupExtractor, newServletContextUriLocator
 
Methods inherited from class ro.isdc.wro.manager.factory.standalone.StandaloneWroManagerFactory
newUriLocatorFactory
 
Methods inherited from class ro.isdc.wro.manager.factory.BaseWroManagerFactory
addModelTransformer, create, destroy, getNamingStrategy, newCacheStrategy, newHashBuilder, newModelTransformers, onCachePeriodChanged, onModelPeriodChanged, registerCallback, setCacheStrategy, setGroupExtractor, setHashBuilder, setModelFactory, setModelTransformers, setNamingStrategy, setProcessorsFactory, setUriLocatorFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ro.isdc.wro.manager.factory.standalone.StandaloneContextAwareManagerFactory
setProcessorsFactory
 
Methods inherited from interface ro.isdc.wro.manager.WroManagerFactory
destroy
 
Methods inherited from interface ro.isdc.wro.util.ObjectFactory
create
 

Constructor Detail

ConfigurableWroManagerFactory

public ConfigurableWroManagerFactory()
Method Detail

initialize

public void initialize(StandaloneContext standaloneContext)

Specified by:
initialize in interface StandaloneContextAwareManagerFactory
Overrides:
initialize in class DefaultStandaloneContextAwareManagerFactory

newModelFactory

protected WroModelFactory newModelFactory()

Overrides:
newModelFactory in class DefaultStandaloneContextAwareManagerFactory

createPreProcessorsMap

protected java.util.Map<java.lang.String,ResourcePreProcessor> createPreProcessorsMap()
Overrides:
createPreProcessorsMap in class ConfigurableStandaloneContextAwareManagerFactory
Returns:
a map of preProcessors.

createPostProcessorsMap

protected java.util.Map<java.lang.String,ResourcePostProcessor> createPostProcessorsMap()
Overrides:
createPostProcessorsMap in class ConfigurableStandaloneContextAwareManagerFactory
Returns:
a map of postProcessors.

createProperties

protected java.util.Properties createProperties()

Overrides:
createProperties in class ConfigurableStandaloneContextAwareManagerFactory

setExtraConfigFile

public void setExtraConfigFile(java.io.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-2011. All Rights Reserved.