ro.isdc.wro.config.factory
Class FilterConfigWroConfigurationFactory

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

public class FilterConfigWroConfigurationFactory
extends Object
implements ObjectFactory<WroConfiguration>

This factory retrieve wroConfigurations from FilterConfig. The underlying implementation creates a Properties object from FilterConfig and populates it with all ConfigConstants values and creates the WroConfiguration using PropertyWroConfigurationFactory.

Since:
1.3.7
Author:
Alex Objelean

Field Summary
static String PARAM_CONFIGURATION
          Configuration Mode (DEVELOPMENT or DEPLOYMENT) By default DEVELOPMENT mode is used.
static String PARAM_VALUE_DEPLOYMENT
          Deprecated. 
 
Constructor Summary
FilterConfigWroConfigurationFactory(javax.servlet.FilterConfig filterConfig)
           
 
Method Summary
 WroConfiguration create()
          
protected  Properties createPropertiesFromFilterConfig()
           
protected  Properties initProperties()
          Prepares the Properties object before it is used by the PropertyWroConfigurationFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_CONFIGURATION

public static final String PARAM_CONFIGURATION
Configuration Mode (DEVELOPMENT or DEPLOYMENT) By default DEVELOPMENT mode is used.

See Also:
Constant Field Values

PARAM_VALUE_DEPLOYMENT

@Deprecated
public static final String PARAM_VALUE_DEPLOYMENT
Deprecated. 
Replace with a boolean used for debug Deployment configuration option. If false, the DEVELOPMENT (or DEBUG) is assumed.

See Also:
Constant Field Values
Constructor Detail

FilterConfigWroConfigurationFactory

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

initProperties

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

Returns:
Properties object used by PropertyWroConfigurationFactory to create WroConfiguration

createPropertiesFromFilterConfig

protected final Properties createPropertiesFromFilterConfig()
Returns:
initialized Properties object based init params found in FilterConfig.

create

public final WroConfiguration create()

Specified by:
create in interface ObjectFactory<WroConfiguration>


Copyright © 2008-2013. All Rights Reserved.