JBoss MetaData Repository 2.2.0.SP1

org.jboss.metadata.plugins.cache
Class DefaultCacheFactory

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

public class DefaultCacheFactory
extends Object
implements CacheFactory

Default cache factory - legacy mock.

Author:
Ales Justin

Constructor Summary
DefaultCacheFactory()
           
 
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.
 String createFqn(Object owner)
          Create the owner's fqn.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCacheFactory

public DefaultCacheFactory()
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

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

JBoss MetaData Repository 2.2.0.SP1

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