public class DefaultWroManagerFactory extends Object implements WroManagerFactory
WroConfiguration or loads a default one if none is configured.| Constructor and Description |
|---|
DefaultWroManagerFactory(Properties properties)
Responsible for creating an instance of
WroManagerFactory whose className is configured in provided
Properties. |
| Modifier and Type | Method and Description |
|---|---|
WroManager |
create() |
static DefaultWroManagerFactory |
create(ObjectFactory<WroConfiguration> configurationFactory) |
static DefaultWroManagerFactory |
create(WroConfiguration configuration)
A factory method which uses
WroConfiguration to get the configured wroManager className. |
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() |
public DefaultWroManagerFactory(Properties properties)
WroManagerFactory whose className is configured in provided
Properties. If managerFactoryClassName is missing, a default one is created.properties - Properties from where the managerFactoryClassName will be read in order to load an instance of
WroManagerFactory.public static DefaultWroManagerFactory create(WroConfiguration configuration)
WroConfiguration to get the configured wroManager className.configuration - WroConfiguration to get the ConfigConstants.managerFactoryClassName from.public static DefaultWroManagerFactory create(ObjectFactory<WroConfiguration> configurationFactory)
protected WroManagerFactory newManagerFactory()
WroManagerFactory to be used when WroConfiguration doesn't specify any factory.public void onCachePeriodChanged(long value)
onCachePeriodChanged in interface WroConfigurationChangeListenervalue - number of seconds used by scheduler to trigger cache change.public void onModelPeriodChanged(long value)
onModelPeriodChanged in interface WroConfigurationChangeListenervalue - number of seconds used by scheduler to trigger model change.public WroManager create()
create in interface ObjectFactory<WroManager>public void destroy()
destroy in interface WroManagerFactorypublic final WroManagerFactory getFactory()
Copyright © 2008-2014. All Rights Reserved.