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| Constructor and Description |
|---|
WroManager() |
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 WroManager setGroupExtractor(GroupExtractor groupExtractor)
groupExtractor - the uriProcessor to setpublic final WroManager setModelFactory(WroModelFactory modelFactory)
public final WroManager setCacheStrategy(CacheStrategy<CacheKey,CacheValue> cacheStrategy)
cacheStrategy - the cache to setpublic final WroManager setHashStrategy(HashStrategy hashStrategy)
hashStrategy - the contentDigester to setpublic final HashStrategy getHashStrategy()
public final WroModelFactory getModelFactory()
public final ProcessorsFactory getProcessorsFactory()
public final WroManager setProcessorsFactory(ProcessorsFactory processorsFactory)
processorsFactory - the processorsFactory to setpublic final void setNamingStrategy(NamingStrategy namingStrategy)
public final WroManager setUriLocatorFactory(UriLocatorFactory uriLocatorFactory)
uriLocatorFactory - the uriLocatorFactory to setpublic final CacheStrategy<CacheKey,CacheValue> getCacheStrategy()
public final UriLocatorFactory getUriLocatorFactory()
public final NamingStrategy getNamingStrategy()
public final GroupExtractor getGroupExtractor()
public final GroupsProcessor getGroupsProcessor()
public CacheKeyFactory getCacheKeyFactory()
public void setCacheKeyFactory(CacheKeyFactory cacheKeyFactory)
public MetaDataFactory getMetaDataFactory()
public void setMetaDataFactory(MetaDataFactory metaDataFactory)
public final void registerCallback(LifecycleCallback callback)
callback - LifecycleCallback to register.public final List<Transformer<WroModel>> getModelTransformers()
public final void setModelTransformers(List<Transformer<WroModel>> modelTransformers)
public LifecycleCallbackRegistry getCallbackRegistry()
public ResourceAuthorizationManager getResourceAuthorizationManager()
public void setResourceAuthorizationManager(ResourceAuthorizationManager authorizationManager)
Copyright © 2008-2013. All Rights Reserved.