org.infinispan.spring.provider
Class ContainerCacheManagerFactoryBean

java.lang.Object
  extended by org.infinispan.spring.provider.ContainerCacheManagerFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<org.springframework.cache.CacheManager>

public class ContainerCacheManagerFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<org.springframework.cache.CacheManager>

FactoryBean for creating a CacheManager for a pre-defined CacheContainer.

Useful when the cache container is defined outside the application (e.g. provided by the application server)

Author:
Marius Bogoevici

Constructor Summary
ContainerCacheManagerFactoryBean(CacheContainer cacheContainer)
           
 
Method Summary
 org.springframework.cache.CacheManager getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerCacheManagerFactoryBean

public ContainerCacheManagerFactoryBean(CacheContainer cacheContainer)
Method Detail

getObject

public org.springframework.cache.CacheManager getObject()
                                                 throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<org.springframework.cache.CacheManager>
Throws:
Exception

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.springframework.cache.CacheManager>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.springframework.cache.CacheManager>

-->

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