Class LuteceUserCacheService
java.lang.Object
fr.paris.lutece.portal.service.cache.AbstractCacheableService<String,LuteceUser>
fr.paris.lutece.portal.service.security.LuteceUserCacheService
- All Implemented Interfaces:
CacheableService<String,,LuteceUser> Lutece107Cache<String,,LuteceUser> LuteceService,Closeable,Serializable,AutoCloseable,Iterable<javax.cache.Cache.Entry<String,,LuteceUser>> javax.cache.Cache<String,LuteceUser>
@ApplicationScoped
public class LuteceUserCacheService
extends AbstractCacheableService<String,LuteceUser>
Cache service for LuteceUserService
- See Also:
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LuteceUserCacheServiceDeprecated, for removal: This API element is subject to removal in a future version.getName()Returns the Service namevoidinitializedService(jakarta.servlet.ServletContext context) This method observes the initialization of theApplicationScopedcontext.Methods inherited from class fr.paris.lutece.portal.service.cache.AbstractCacheableService
clear, close, containsKey, deregisterCacheEntryListener, enableCache, get, getAll, getAndPut, getAndRemove, getAndReplace, getCache, getCacheManager, getCacheSize, getConfiguration, getFromCache, getInfos, getKeys, initCache, initCache, initCache, invoke, invokeAll, isCacheEnable, isClosed, isPreventGlobalReset, iterator, loadAll, put, putAll, putIfAbsent, putInCache, registerCacheEntryListener, remove, remove, removeAll, removeAll, removeKey, replace, replace, resetCache, setCache, unwrapMethods 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, getTimeToLiveMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
LuteceUserCacheService
public LuteceUserCacheService()
-
-
Method Details
-
getInstance
Deprecated, for removal: This API element is subject to removal in a future version.Use@Injectto obtain theLuteceUserCacheServiceinstance. This method will be removed in future versions.Returns the unique instance of theLuteceUserCacheServiceservice.This method is deprecated and is provided for backward compatibility only. For new code, use dependency injection with
@Injectto obtain theLuteceUserCacheServiceinstance instead.- Returns:
- The unique instance of
LuteceUserCacheService.
-
getName
Returns the Service name- Returns:
- The name as a String
-
initializedService
public void initializedService(@Observes @Initialized(jakarta.enterprise.context.ApplicationScoped.class) jakarta.servlet.ServletContext context) This method observes the initialization of theApplicationScopedcontext. It ensures that this CDI beans are instantiated at the application startup.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.
-
@Injectto obtain theLuteceUserCacheServiceinstance.