Class DefaultCacheService

    • Constructor Detail

      • DefaultCacheService

        public DefaultCacheService()
    • Method Detail

      • put

        public void put​(Object key,
                        Object value)
        Description copied from interface: CacheService
        Stores the given object in the cache.
        Specified by:
        put in interface CacheService
        Parameters:
        key - A key.
        value - A value.
      • get

        public Object get​(Object key)
        Specified by:
        get in interface CacheService
        Parameters:
        key - A key
        Returns:
        The cached object, or null if the object is not in the cache.
      • initialize

        public void initialize()
        Description copied from interface: Service
        Performs any needed initialization when the service is first loaded.

        NB: This method is not intended to be called directly. It is called by the service framework itself (specifically by the ServiceHelper) when initializing the service. It should not be called a second time.

        Specified by:
        initialize in interface Initializable
        Specified by:
        initialize in interface Service