ro.isdc.wro.config.factory
Class PropertiesAndFilterConfigWroConfigurationFactory

java.lang.Object
  extended by ro.isdc.wro.config.factory.FilterConfigWroConfigurationFactory
      extended by ro.isdc.wro.config.factory.PropertiesAndFilterConfigWroConfigurationFactory
All Implemented Interfaces:
ObjectFactory<WroConfiguration>

public class PropertiesAndFilterConfigWroConfigurationFactory
extends FilterConfigWroConfigurationFactory

Uses a default Properties file location (under /WEB-INF/wro.properties) for creating WroConfiguration and overrides them with properties defined in FilterConfig object. This will allow user to easily switch from old style of configuring WroConfiguration to the new style (by defining a property file).

Since:
1.3.8
Author:
Alex Objelean

Field Summary
 
Fields inherited from class ro.isdc.wro.config.factory.FilterConfigWroConfigurationFactory
PARAM_CONFIGURATION, PARAM_VALUE_DEPLOYMENT
 
Constructor Summary
PropertiesAndFilterConfigWroConfigurationFactory(javax.servlet.FilterConfig filterConfig)
           
 
Method Summary
 Properties initProperties()
          Prepares the Properties object before it is used by the PropertyWroConfigurationFactory.
protected  Properties newDefaultProperties()
           
 
Methods inherited from class ro.isdc.wro.config.factory.FilterConfigWroConfigurationFactory
create, createPropertiesFromFilterConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesAndFilterConfigWroConfigurationFactory

public PropertiesAndFilterConfigWroConfigurationFactory(javax.servlet.FilterConfig filterConfig)
Method Detail

initProperties

public Properties initProperties()
Prepares the Properties object before it is used by the PropertyWroConfigurationFactory.

Overrides:
initProperties in class FilterConfigWroConfigurationFactory
Returns:
Properties object used by PropertyWroConfigurationFactory to create WroConfiguration

newDefaultProperties

protected Properties newDefaultProperties()
Returns:
the Properties built from the default location.


Copyright © 2008-2013. All Rights Reserved.