org.apache.commons.vfs
Class CacheStrategy

java.lang.Object
  extended by org.apache.commons.vfs.CacheStrategy

public final class CacheStrategy
extends java.lang.Object

An enumerated type to deal with the various cache strategies.

Version:
$Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Mi, 29 Nov 2006) $
Author:
Mario Ivankovits

Field Summary
static CacheStrategy MANUAL
          Deal with cached data manually.
private  java.lang.String name
           
static CacheStrategy ON_CALL
          Refresh the data every time you call a method on the fileObject.
static CacheStrategy ON_RESOLVE
          Refresh the data every time you request a file from FileSystemManager.resolveFile(java.lang.String)
 
Constructor Summary
private CacheStrategy(java.lang.String name)
           
 
Method Summary
 java.lang.String getName()
          Returns the name of the scope.
 java.lang.String toString()
          Returns the name of the scope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MANUAL

public static final CacheStrategy MANUAL
Deal with cached data manually. Call FileObject.refresh() to refresh the object data.


ON_RESOLVE

public static final CacheStrategy ON_RESOLVE
Refresh the data every time you request a file from FileSystemManager.resolveFile(java.lang.String)


ON_CALL

public static final CacheStrategy ON_CALL
Refresh the data every time you call a method on the fileObject. You'll use this only if you really need the latest info as this setting is a major performance loss.


name

private final java.lang.String name
Constructor Detail

CacheStrategy

private CacheStrategy(java.lang.String name)
Method Detail

toString

public java.lang.String toString()
Returns the name of the scope.

Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
Returns the name of the scope.