|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.service.cache.AbstractCacheableService
fr.paris.lutece.portal.service.resource.ResourceService
public abstract class ResourceService
This abstract Class provides a standard way for application to deliver resources using multiple loaders and an optional cache.
Constructor Summary | |
---|---|
protected |
ResourceService()
|
Method Summary | |
---|---|
protected void |
addLoader(java.lang.String strLoaderClassName)
Add a new loader to the service |
protected abstract java.lang.String |
getLoadersProperty()
Gets the name of the property that list all loaders |
java.lang.String |
getName()
Get the service name |
protected Resource |
getResource(java.lang.String strId)
Returns a resource by its Id |
protected java.util.Collection<Resource> |
getResources()
Load all resources |
protected void |
initLoaders(java.lang.String strKey)
Initialize loaders |
protected void |
setCacheKey(java.lang.String strKey)
Defines whether the cache is enable or disable reading a property |
protected void |
setName(java.lang.String strName)
Set the service name |
protected void |
setNameKey(java.lang.String strKey)
Set the service name by reading a property |
Methods inherited from class fr.paris.lutece.portal.service.cache.AbstractCacheableService |
---|
clone, dispose, enableCache, getCache, getCacheSize, getFromCache, getInfos, getKeys, getMaxElements, getMemorySize, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, resetCache |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ResourceService()
Method Detail |
---|
protected abstract java.lang.String getLoadersProperty()
protected void initLoaders(java.lang.String strKey)
strKey
- The property key that contains all loaders classprotected void setName(java.lang.String strName)
strName
- The service namepublic java.lang.String getName()
protected void setNameKey(java.lang.String strKey)
strKey
- The name keyprotected void setCacheKey(java.lang.String strKey)
strKey
- The key name of the cacheprotected void addLoader(java.lang.String strLoaderClassName)
strLoaderClassName
- The loader class nameprotected Resource getResource(java.lang.String strId)
strId
- The resource Id
protected java.util.Collection<Resource> getResources()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |