com.flexive.shared.cache
Class FxBackingCacheProviderFactory

java.lang.Object
  extended by com.flexive.shared.cache.FxBackingCacheProviderFactory

public class FxBackingCacheProviderFactory
extends java.lang.Object

Factory class to create FxBackingCache providers

Author:
Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)

Field Summary
static java.lang.String KEY
          Name of the environment property to set to force a provider
 
Constructor Summary
FxBackingCacheProviderFactory()
           
 
Method Summary
static FxBackingCacheProvider createNew()
          Factory method to create a new FxBackingCacheProvider

Strategy used in this order in case of failure: if System property is set try to obtain a new instance of the given class try to get a JNDI TreeCache instance with key "FxJBossTreeCache" create a local TreeCache MBean

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY

public static final java.lang.String KEY
Name of the environment property to set to force a provider

Constructor Detail

FxBackingCacheProviderFactory

public FxBackingCacheProviderFactory()
Method Detail

createNew

public static FxBackingCacheProvider createNew()
Factory method to create a new FxBackingCacheProvider

Strategy used in this order in case of failure:

  1. if System property is set try to obtain a new instance of the given class
  2. try to get a JNDI TreeCache instance with key "FxJBossTreeCache"
  3. create a local TreeCache MBean

Returns:
FxBackingCacheProvider