ro.isdc.wro.manager.factory
Class DefaultWroManagerFactory

java.lang.Object
  extended by ro.isdc.wro.manager.factory.DefaultWroManagerFactory
All Implemented Interfaces:
WroConfigurationChangeListener, WroManagerFactory, ObjectFactory<WroManager>

public class DefaultWroManagerFactory
extends Object
implements WroManagerFactory

Load the WroManagerFactory configured in WroConfiguration or loads a default one if none is configured.

Since:
1.4.6
Author:
Alex Objelean

Constructor Summary
DefaultWroManagerFactory(WroConfiguration configuration)
           
 
Method Summary
 WroManager create()
          
 void destroy()
          Called by filter indicating that it is being taken out of service.
 WroManagerFactory getFactory()
           
protected  WroManagerFactory newManagerFactory()
           
 void onCachePeriodChanged(long value)
          Invoked when the cachePeriod property is changed.
 void onModelPeriodChanged(long value)
          Invoked when the modelPeriod property is changed.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultWroManagerFactory

public DefaultWroManagerFactory(WroConfiguration configuration)
Method Detail

newManagerFactory

protected WroManagerFactory newManagerFactory()
Returns:
the default WroManagerFactory to be used when WroConfiguration doesn't specify any factory.

onCachePeriodChanged

public void onCachePeriodChanged(long value)
Invoked when the cachePeriod property is changed.

Specified by:
onCachePeriodChanged in interface WroConfigurationChangeListener
Parameters:
value - number of seconds used by scheduler to trigger cache change.

onModelPeriodChanged

public void onModelPeriodChanged(long value)
Invoked when the modelPeriod property is changed.

Specified by:
onModelPeriodChanged in interface WroConfigurationChangeListener
Parameters:
value - number of seconds used by scheduler to trigger model change.

create

public WroManager create()

Specified by:
create in interface ObjectFactory<WroManager>

destroy

public void destroy()
Called by filter indicating that it is being taken out of service.

Specified by:
destroy in interface WroManagerFactory

getFactory

public final WroManagerFactory getFactory()
Returns:
the inner factory.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2013. All Rights Reserved.