|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.isdc.wro.manager.factory.BaseWroManagerFactory
public class BaseWroManagerFactory
Default implementation of WroManagerFactory
which creates default locators and processors and handles the
injection logic by creating an Injector
and injecting where it is appropriate.
Constructor Summary | |
---|---|
BaseWroManagerFactory()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseWroManagerFactory()
Method Detail |
---|
public final WroManager create()
create
in interface ObjectFactory<WroManager>
protected ResourceAuthorizationManager newAuthorizationManager()
ResourceAuthorizationManager
.protected void onAfterInitializeManager(WroManager manager)
manager
- initialized instance of WroManager
.public BaseWroManagerFactory setNamingStrategy(NamingStrategy namingStrategy)
namingStrategy
- the namingStrategy to setprotected List<Transformer<WroModel>> newModelTransformers()
protected ProcessorsFactory newProcessorsFactory()
ProcessorsFactory
object.protected UriLocatorFactory newUriLocatorFactory()
UriLocatorFactory
object.protected HashStrategy newHashStrategy()
HashStrategy
instance.protected NamingStrategy newNamingStrategy()
NamingStrategy
to be used by this WroManagerFactory
public void onCachePeriodChanged(long period)
onCachePeriodChanged
in interface WroConfigurationChangeListener
period
- number of seconds used by scheduler to trigger cache change.public void onModelPeriodChanged(long period)
onModelPeriodChanged
in interface WroConfigurationChangeListener
period
- number of seconds used by scheduler to trigger model change.protected CacheStrategy<CacheKey,CacheValue> newCacheStrategy()
CacheStrategy
instance for resources' group caching.protected GroupExtractor newGroupExtractor()
GroupExtractor
implementation.protected CacheKeyFactory newCacheKeyFactory()
CacheKeyFactory
.protected WroModelFactory newModelFactory()
servletContext
- ServletContext
which could be useful for creating dynamic WroModel
.
WroModelFactory
implementationprotected MetaDataFactory newMetaDataFactory()
MetaDataFactory
used when no MetaDataFactory
is set.public BaseWroManagerFactory setGroupExtractor(GroupExtractor groupExtractor)
groupExtractor
- the groupExtractor to setpublic BaseWroManagerFactory setModelFactory(WroModelFactory modelFactory)
modelFactory
- the modelFactory to set@Deprecated public BaseWroManagerFactory setHashBuilder(HashStrategy hashBuilder)
setHashStrategy(HashStrategy)
hashBuilder
- the hashBuilder to setpublic BaseWroManagerFactory setHashStrategy(HashStrategy hashStrategy)
hashBuilder
- the hashBuilder to setpublic void setCacheKeyFactory(CacheKeyFactory cacheKeyFactory)
public BaseWroManagerFactory setModelTransformers(List<Transformer<WroModel>> modelTransformers)
modelTransformers
- the modelTransformers to setpublic BaseWroManagerFactory addModelTransformer(Transformer<WroModel> modelTransformer)
public BaseWroManagerFactory setCacheStrategy(CacheStrategy<CacheKey,CacheValue> cacheStrategy)
cacheStrategy
- the cacheStrategy to setpublic BaseWroManagerFactory setUriLocatorFactory(UriLocatorFactory uriLocatorFactory)
uriLocatorFactory
- the uriLocatorFactory to setpublic void setProcessorsFactory(ProcessorsFactory processorsFactory)
processorsFactory
- the processorsFactory to setpublic BaseWroManagerFactory setResourceAuthorizationManager(ResourceAuthorizationManager authorizationManager)
public void setMetaDataFactory(MetaDataFactory metaDataFactory)
public void destroy()
destroy
in interface WroManagerFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |