org.jboss.virtual.plugins.cache
Class PreInitializeVFSContexts

java.lang.Object
  extended by org.jboss.virtual.plugins.cache.PreInitializeVFSContexts

public class PreInitializeVFSContexts
extends java.lang.Object

Initialize vfs contexts - performance improvements.

Author:
Ales Justin

Field Summary
protected  org.jboss.logging.Logger log
           
 
Constructor Summary
PreInitializeVFSContexts()
           
 
Method Summary
 java.util.List<VFS> getReferences()
          Get VFS references.
 void setHoldReference(boolean holdReference)
          Should we hold the reference to initialized VFSs.
 void setInitializedVFSContexts(java.util.Map<java.net.URL,ExceptionHandler> initializedVFSContexts)
          Set URLs that need to be initialized before anything else.
 void setTempStores(java.util.Map<java.net.URL,TempStore> tempStores)
          Set temp stores.
 void start()
          Start initializer.
 void stop()
          Clear possible references.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.jboss.logging.Logger log
Constructor Detail

PreInitializeVFSContexts

public PreInitializeVFSContexts()
Method Detail

start

public void start()
           throws java.lang.Exception
Start initializer.

Throws:
java.lang.Exception - for any exception

stop

public void stop()
Clear possible references.


getReferences

public java.util.List<VFS> getReferences()
Get VFS references.

Returns:
the VFS references

setInitializedVFSContexts

public void setInitializedVFSContexts(java.util.Map<java.net.URL,ExceptionHandler> initializedVFSContexts)
Set URLs that need to be initialized before anything else.

Parameters:
initializedVFSContexts - the URLs to be initialized

setTempStores

public void setTempStores(java.util.Map<java.net.URL,TempStore> tempStores)
Set temp stores.

Parameters:
tempStores - the temp stores

setHoldReference

public void setHoldReference(boolean holdReference)
Should we hold the reference to initialized VFSs.

Parameters:
holdReference - the hold reference flag