org.jboss.virtual.plugins.cache
Class PreInitializeVFSContexts

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

public class PreInitializeVFSContexts
extends Object

Initialize vfs contexts - performance improvements.

Author:
Ales Justin

Constructor Summary
PreInitializeVFSContexts()
           
 
Method Summary
 List<VFS> getReferences()
          Get VFS references.
 void setHoldReference(boolean holdReference)
          Should we hold the reference to initialized VFSs.
 void setInitializedVFSContexts(Map<URL,ExceptionHandler> initializedVFSContexts)
          Set URLs that need to be initialized before anything else.
 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
 

Constructor Detail

PreInitializeVFSContexts

public PreInitializeVFSContexts()
Method Detail

start

public void start()
           throws Exception
Start initializer.

Throws:
Exception - for any exception

stop

public void stop()
Clear possible references.


getReferences

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

Returns:
the VFS references

setInitializedVFSContexts

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

Parameters:
initializedVFSContexts - the URLs to be initialized

setHoldReference

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

Parameters:
holdReference - the hold reference flag


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