Seam Core JSF2 2.3.5.Final-redhat-1

org.jboss.seam.cache

Class EhCacheProvider

    • Constructor Detail

      • EhCacheProvider

        public EhCacheProvider()
    • Method Detail

      • getDelegate

        public net.sf.ehcache.CacheManager getDelegate()
        Specified by:
        getDelegate in class CacheProvider<net.sf.ehcache.CacheManager>
        Returns:
        - the cache the cache provider delegates to
      • put

        public void put(String region,
               String key,
               Object object)
        Description copied from class: CacheProvider
        Puts an object into the cache. The object is placed in the specified cache region under the given key.
        Specified by:
        put in class CacheProvider<net.sf.ehcache.CacheManager>
        Parameters:
        region - - the name of a cache region
        key - - a key to identify the object
        object - - the object to be stored in the cache
      • clear

        public void clear()
        Description copied from class: CacheProvider
        Removes all objects from all cache regions
        Specified by:
        clear in class CacheProvider<net.sf.ehcache.CacheManager>
      • get

        public Object get(String region,
                 String key)
        Description copied from class: CacheProvider
        Fetches an object for the given key from the cache and returns it if found. Only the specified cache region will be searched.
        Specified by:
        get in class CacheProvider<net.sf.ehcache.CacheManager>
        Parameters:
        region - - the name of a cache region
        key - - a key to identify the object.
        Returns:
        - the object if found or null if not
      • remove

        public void remove(String region,
                  String key)
        Description copied from class: CacheProvider
        Removes an object from the cache. The object is removed from the specified cache region under the given key.
        Specified by:
        remove in class CacheProvider<net.sf.ehcache.CacheManager>
        Parameters:
        region - - the name of a cache region
        key - - a key to identify the object
      • create

        @Create
        public void create()
      • destroy

        @Destroy
        public void destroy()
Seam Core JSF2 2.3.5.Final-redhat-1

Copyright © 2015 Seam Framework. All Rights Reserved.