public class WroManager extends Object implements WroConfigurationChangeListener
WroManagerFactory, in order to ensure that all dependencies are injected properly. In other words, avoid
setting the fields explicitly after creating a new instance of WroManager.
Most of the fields of this class are annotated with @Inject, in order to ensure that each instance can benefit use
@Inject annotation on its fields.
| Modifier and Type | Class and Description |
|---|---|
static class |
WroManager.Builder |
public final void process()
throws IOException
IOException - when any IO related problem occurs or if the request cannot be processed.public final String encodeVersionIntoGroupPath(String groupName, ResourceType resourceType, boolean minimize)
protected String formatVersionedResource(String hash, String resourcePath)
hash - Hash of the resource.resourcePath - Path of the resource.public final void onCachePeriodChanged(long period)
onCachePeriodChanged in interface WroConfigurationChangeListenerperiod - number of seconds used by scheduler to trigger cache change.public final void onModelPeriodChanged(long period)
onModelPeriodChanged in interface WroConfigurationChangeListenerperiod - number of seconds used by scheduler to trigger model change.public final void destroy()
WroManager is being taken out of service.public final HashStrategy getHashStrategy()
public final WroModelFactory getModelFactory()
public final ProcessorsFactory getProcessorsFactory()
public final CacheStrategy<CacheKey,CacheValue> getCacheStrategy()
public final UriLocatorFactory getUriLocatorFactory()
public final NamingStrategy getNamingStrategy()
public final GroupExtractor getGroupExtractor()
public CacheKeyFactory getCacheKeyFactory()
public MetaDataFactory getMetaDataFactory()
public ResourceWatcher getResourceWatcher()
public final void registerCallback(ObjectFactory<LifecycleCallback> callbackFactory)
callbackFactory - ObjectFactory responsible for creating LifecycleCallback instance.public LifecycleCallbackRegistry getCallbackRegistry()
public ResourceAuthorizationManager getResourceAuthorizationManager()
Copyright © 2008-2014. All Rights Reserved.