Class XmlTransformerCacheService
java.lang.Object
fr.paris.lutece.portal.service.html.XmlTransformerCacheService
- All Implemented Interfaces:
fr.paris.lutece.portal.service.cache.CacheableService<String,,String> fr.paris.lutece.portal.service.util.LuteceService
@ApplicationScoped
public class XmlTransformerCacheService
extends Object
implements fr.paris.lutece.portal.service.cache.CacheableService<String,String>
XmlTransformerCacheService
- Since:
- v 3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenableCache(boolean bEnable) intgetInfos()getKeys()getName()voidinitializedService(jakarta.servlet.ServletContext context) This method observes the initialization of theApplicationScopedcontext and registers an instance ofXmlTransformerCacheServicewith theCacheService.booleanbooleanvoidMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.portal.service.cache.CacheableService
getMaxElements, getMemorySize, getTimeToLive, isPreventReset, isRequired
-
Constructor Details
-
XmlTransformerCacheService
public XmlTransformerCacheService()
-
-
Method Details
-
getName
- Specified by:
getNamein interfacefr.paris.lutece.portal.service.util.LuteceService
-
isCacheEnable
public boolean isCacheEnable() -
getCacheSize
public int getCacheSize() -
resetCache
public void resetCache() -
enableCache
public void enableCache(boolean bEnable) -
getKeys
-
getInfos
-
initializedService
public void initializedService(@Observes @Initialized(jakarta.enterprise.context.ApplicationScoped.class) jakarta.servlet.ServletContext context) This method observes the initialization of theApplicationScopedcontext and registers an instance ofXmlTransformerCacheServicewith theCacheService.This method is triggered automatically by CDI when the
ApplicationScopedcontext is initialized, which typically occurs during the startup of the application server.- Parameters:
context- theServletContextthat is initialized. This parameter is observed and injected automatically by CDI when theApplicationScopedcontext is initialized.
-
isPreventGlobalReset
public boolean isPreventGlobalReset()
-