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, 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

Constructor Summary
ConfigurableWroManagerFactory()
           
 
Method Summary
protected  Properties createProperties()
          
 void initialize(StandaloneContext standaloneContext)
          Called by standalone process for initialization.
protected  HashStrategy newHashStrategy()
          
protected  WroModelFactory newModelFactory()
          
protected  NamingStrategy newNamingStrategy()
          
 void setExtraConfigFile(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, 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
 

Constructor Detail

ConfigurableWroManagerFactory

public ConfigurableWroManagerFactory()
Method Detail

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.