org.jboss.ejb3.cache
Class CacheFactoryRegistry

java.lang.Object
  extended by org.jboss.ejb3.cache.CacheFactoryRegistry

public class CacheFactoryRegistry
extends java.lang.Object

Registry for all configured Stateful Cache Factory implementations


Constructor Summary
CacheFactoryRegistry()
           
 
Method Summary
 Ejb3CacheFactory getCacheFactory(java.lang.String name)
          Obtains the Cache Factory with the specified registered name
 java.util.Map<java.lang.String,java.lang.Class<? extends Ejb3CacheFactory>> getFactories()
           
 void setFactories(java.util.Map<java.lang.String,java.lang.Class<? extends Ejb3CacheFactory>> factories)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheFactoryRegistry

public CacheFactoryRegistry()
Method Detail

getFactories

public java.util.Map<java.lang.String,java.lang.Class<? extends Ejb3CacheFactory>> getFactories()

setFactories

public void setFactories(java.util.Map<java.lang.String,java.lang.Class<? extends Ejb3CacheFactory>> factories)

getCacheFactory

public Ejb3CacheFactory getCacheFactory(java.lang.String name)
                                 throws CacheFactoryNotRegisteredException
Obtains the Cache Factory with the specified registered name

Parameters:
name - The registered name of the cache factory to retrieve
Returns:
The Cache Factory
Throws:
CacheFactoryNotRegisteredException