public class WroManagerFactoryDecorator extends AbstractDecorator<WroManagerFactory> implements WroManagerFactory, StandaloneContextAware
WroManagerFactory.
This class implements als the StandaloneContextAware in order to allow decoration of factories used in
standalone context (example: maven plugin).| Constructor and Description |
|---|
WroManagerFactoryDecorator(WroManagerFactory managerFactory) |
| Modifier and Type | Method and Description |
|---|---|
WroManager |
create() |
void |
destroy()
Called by filter indicating that it is being taken out of service.
|
void |
initialize(StandaloneContext standaloneContext)
Called by standalone process for initialization.
|
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.
|
getDecoratedObject, getOriginalDecoratedObject, getOriginalDecoratedObject, toStringpublic WroManagerFactoryDecorator(WroManagerFactory managerFactory)
public WroManager create()
create in interface ObjectFactory<WroManager>protected void onBeforeBuild(WroManager.Builder builder)
WroManager is created.public void onCachePeriodChanged(long value)
WroConfigurationChangeListeneronCachePeriodChanged in interface WroConfigurationChangeListenervalue - number of seconds used by scheduler to trigger cache change.public void onModelPeriodChanged(long value)
WroConfigurationChangeListeneronModelPeriodChanged in interface WroConfigurationChangeListenervalue - number of seconds used by scheduler to trigger model change.public void destroy()
WroManagerFactorydestroy in interface WroManagerFactorypublic void initialize(StandaloneContext standaloneContext)
StandaloneContextAwareStandaloneContext in order to initialize the internals.initialize in interface StandaloneContextAwarestandaloneContext - StandaloneContext holding properties associated with current context.Copyright © 2008-2016. All Rights Reserved.