public abstract class ResourceService extends AbstractCacheableService
| Modifier | Constructor and Description |
|---|---|
protected |
ResourceService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLoader(String strLoaderClassName)
Add a new loader to the service
|
protected abstract String |
getLoadersProperty()
Gets the name of the property that list all loaders
|
String |
getName()
Get the service name
|
protected Resource |
getResource(String strId)
Returns a resource by its Id
|
protected Collection<Resource> |
getResources()
Load all resources
|
protected void |
initLoaders(String strKey)
Initialize loaders
|
protected void |
setCacheKey(String strKey)
Defines whether the cache is enable or disable reading a property
|
protected void |
setName(String strName)
Set the service name
|
protected void |
setNameKey(String strKey)
Set the service name by reading a property
|
clone, dispose, enableCache, getCache, getCacheSize, getFromCache, getInfos, getKeys, getMaxElements, getMemorySize, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, removeKey, resetCacheprotected abstract String getLoadersProperty()
protected void initLoaders(String strKey)
strKey - The property key that contains all loaders classprotected void setName(String strName)
strName - The service namepublic String getName()
protected void setNameKey(String strKey)
strKey - The name keyprotected void setCacheKey(String strKey)
strKey - The key name of the cacheprotected void addLoader(String strLoaderClassName)
strLoaderClassName - The loader class nameprotected Resource getResource(String strId)
strId - The resource Idprotected Collection<Resource> getResources()
Copyright © 2016 City of Paris. All rights reserved.