org.jboss.metadata.plugins.cache
Class CachePolicyCacheFactory

java.lang.Object
  extended by org.jboss.metadata.plugins.cache.CachePolicyCacheFactory
All Implemented Interfaces:
CacheFactory

public class CachePolicyCacheFactory
extends Object
implements CacheFactory

Cache policy cache factory.

Author:
Ales Justin

Constructor Summary
CachePolicyCacheFactory(CachePolicyFactory factory)
           
 
Method Summary
<K,V> Cache<K,V>
createCache(Class<K> keyClass, Class<V> valueClass, String rootFqn)
          Create cache.
<V> CacheItem<V>
createCacheItem(Class<V> valueClass, String rootFqn)
          Create cache.
protected  org.jboss.util.CachePolicy createCachePolicy()
          Create cache policy.
 String createFqn(Object owner)
          Create the owner's fqn.
 void destroy()
          Destroy created policies.
 void stop()
          Stop created policies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachePolicyCacheFactory

public CachePolicyCacheFactory(CachePolicyFactory factory)
Method Detail

createFqn

public String createFqn(Object owner)
Description copied from interface: CacheFactory
Create the owner's fqn.

Specified by:
createFqn in interface CacheFactory
Parameters:
owner - the factory owner instance
Returns:
owner's fqn

createCachePolicy

protected org.jboss.util.CachePolicy createCachePolicy()
Create cache policy.

Returns:
the cache policy

createCache

public <K,V> Cache<K,V> createCache(Class<K> keyClass,
                                    Class<V> valueClass,
                                    String rootFqn)
Description copied from interface: CacheFactory
Create cache.

Specified by:
createCache in interface CacheFactory
Type Parameters:
K - the key class
V - the value class
Parameters:
keyClass - the key class
valueClass - the value class
rootFqn - the root fqn
Returns:
new cache instance

createCacheItem

public <V> CacheItem<V> createCacheItem(Class<V> valueClass,
                                        String rootFqn)
Description copied from interface: CacheFactory
Create cache.

Specified by:
createCacheItem in interface CacheFactory
Type Parameters:
V - the value class
Parameters:
valueClass - the value class
rootFqn - the root fqn
Returns:
new cache instance

stop

public void stop()
Stop created policies.


destroy

public void destroy()
Destroy created policies.



Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.