org.jboss.virtual.spi.cache
Class VFSCacheFactory

java.lang.Object
  extended by org.jboss.virtual.spi.cache.VFSCacheFactory

public class VFSCacheFactory
extends Object

Simple vfs cache factory.

Version:
$Revision: 80615 $
Author:
Ales Justin, Scott.Stark@jboss.org

Method Summary
static VFSCache getInstance()
          Get VFS cache instance.
static VFSCache getInstance(String defaultCacheImpl)
          Get VFS cache instance.
static VFSCache getInstance(String defaultCacheImpl, Map<Object,Object> properties)
          Get VFS cache instance.
static void setInstance(VFSCache cache)
          Set instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static VFSCache getInstance()
Get VFS cache instance.

Returns:
the vfs cache instance

getInstance

public static VFSCache getInstance(String defaultCacheImpl)
Get VFS cache instance.

Parameters:
defaultCacheImpl - - the possibly null name of the VFSCache implementation to use. If null, the VFSUtils.VFS_CACHE_KEY system property will be used.
Returns:
the vfs cache instance

getInstance

public static VFSCache getInstance(String defaultCacheImpl,
                                   Map<Object,Object> properties)
Get VFS cache instance.

Parameters:
defaultCacheImpl - - the possibly null name of the VFSCache implementation to use. If null, the VFSUtils.VFS_CACHE_KEY system property will be used.
properties - the possible vfs cache impl properties
Returns:
the vfs cache instance

setInstance

public static void setInstance(VFSCache cache)
Set instance. This should be used with care. Better to leave it to getInstance method creation.

Parameters:
cache - cache instance to set


Copyright © 2009 JBoss, A division of Red Hat, Inc. All Rights Reserved.