org.apache.accumulo.start.classloader.vfs
Class ContextManager

java.lang.Object
  extended by org.apache.accumulo.start.classloader.vfs.ContextManager

public class ContextManager
extends Object


Nested Class Summary
static class ContextManager.ContextConfig
           
static interface ContextManager.ContextsConfig
           
static class ContextManager.DefaultContextsConfig
           
 
Method Summary
 ClassLoader getClassLoader(String contextName)
           
<U> Class<? extends U>
loadClass(String context, String classname, Class<U> extension)
           
 void removeUnusedContexts(Set<String> inUse)
           
 void setContextConfig(ContextManager.ContextsConfig config)
          configuration must be injected for ContextManager to work
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setContextConfig

public void setContextConfig(ContextManager.ContextsConfig config)
configuration must be injected for ContextManager to work

Parameters:
config -

getClassLoader

public ClassLoader getClassLoader(String contextName)
                           throws org.apache.commons.vfs2.FileSystemException
Throws:
org.apache.commons.vfs2.FileSystemException

loadClass

public <U> Class<? extends U> loadClass(String context,
                                        String classname,
                                        Class<U> extension)
                             throws ClassNotFoundException
Throws:
ClassNotFoundException

removeUnusedContexts

public void removeUnusedContexts(Set<String> inUse)


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.