org.jboss.virtual.spi.cache.helpers
Class NoopVFSCache

java.lang.Object
  extended by org.jboss.virtual.spi.cache.helpers.NoopVFSCache
All Implemented Interfaces:
VFSCache

public class NoopVFSCache
extends Object
implements VFSCache

Noop cache. Doesn't do any caching.

Author:
Ales Justin

Constructor Summary
NoopVFSCache()
           
 
Method Summary
 VFSContext findContext(URI uri)
          Find the context based on uri.
 VFSContext findContext(URL url)
          Find the context based on url.
 void flush()
          Flush the cache.
 void putContext(VFSContext context)
          Put vfs context to cache.
 void removeContext(VFSContext context)
          Remove vfs context from cache.
 void start()
          Start the cache.
 void stop()
          Stop the cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoopVFSCache

public NoopVFSCache()
Method Detail

findContext

public VFSContext findContext(URI uri)
Description copied from interface: VFSCache
Find the context based on uri.

Specified by:
findContext in interface VFSCache
Parameters:
uri - the uri
Returns:
found context or null

findContext

public VFSContext findContext(URL url)
Description copied from interface: VFSCache
Find the context based on url.

Specified by:
findContext in interface VFSCache
Parameters:
url - the url
Returns:
found context or null

putContext

public void putContext(VFSContext context)
Description copied from interface: VFSCache
Put vfs context to cache.

Specified by:
putContext in interface VFSCache
Parameters:
context - the vfs context

removeContext

public void removeContext(VFSContext context)
Description copied from interface: VFSCache
Remove vfs context from cache.

Specified by:
removeContext in interface VFSCache
Parameters:
context - the vfs context

start

public void start()
           throws Exception
Description copied from interface: VFSCache
Start the cache.

Specified by:
start in interface VFSCache
Throws:
Exception - for any error

stop

public void stop()
Description copied from interface: VFSCache
Stop the cache.

Specified by:
stop in interface VFSCache

flush

public void flush()
Description copied from interface: VFSCache
Flush the cache.

Specified by:
flush in interface VFSCache


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