ro.isdc.wro.manager.factory
Class WroManagerFactoryDecorator

java.lang.Object
  extended by ro.isdc.wro.util.AbstractDecorator<WroManagerFactory>
      extended by ro.isdc.wro.manager.factory.WroManagerFactoryDecorator
All Implemented Interfaces:
WroConfigurationChangeListener, WroManagerFactory, ObjectDecorator<WroManagerFactory>, ObjectFactory<WroManager>
Direct Known Subclasses:
InjectableWroManagerFactoryDecorator

public class WroManagerFactoryDecorator
extends AbstractDecorator<WroManagerFactory>
implements WroManagerFactory

Simple decorator for WroManagerFactory.

Since:
1.4.7
Author:
Alex Objelean

Constructor Summary
WroManagerFactoryDecorator(WroManagerFactory managerFactory)
           
 
Method Summary
 WroManager create()
          
 void destroy()
          Called by filter indicating that it is being taken out of service.
protected  void onBeforeBuild(WroManager.Builder builder)
          Allows client code to change the builder before the WroManager is created.
 void onCachePeriodChanged(long value)
          Invoked when the cachePeriod property is changed.
 void onModelPeriodChanged(long value)
          Invoked when the modelPeriod property is changed.
 
Methods inherited from class ro.isdc.wro.util.AbstractDecorator
getDecoratedObject, getOriginalDecoratedObject, getOriginalDecoratedObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WroManagerFactoryDecorator

public WroManagerFactoryDecorator(WroManagerFactory managerFactory)
Method Detail

create

public WroManager create()

Specified by:
create in interface ObjectFactory<WroManager>

onBeforeBuild

protected void onBeforeBuild(WroManager.Builder builder)
Allows client code to change the builder before the WroManager is created.

Parameters:
builder -

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.

destroy

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

Specified by:
destroy in interface WroManagerFactory


Copyright © 2008-2013. All Rights Reserved.