|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.util.classloader.StandaloneClassLoaderFactory
public class StandaloneClassLoaderFactory
Field Summary | |
---|---|
java.lang.String |
ME
|
Constructor Summary | |
---|---|
StandaloneClassLoaderFactory()
|
|
StandaloneClassLoaderFactory(Global glob)
We are a singleton in respect to a Global instance. |
Method Summary | |
---|---|
static java.lang.String |
directoryForWrite(java.lang.String path)
Recursiv go up the given path until we find a writeable directory |
static java.lang.String |
getDirectoryForWrite()
Navigate up the absolute file system path (where this class came from) until we find a writeable directory. |
static LoaderInfo |
getLoaderInfo(java.lang.Object caller,
java.lang.String plugin,
boolean exceptionOnFailure)
Retrievs the base path for the object related classpath. |
java.net.URLClassLoader |
getPluginClassLoader(PluginInfo pluginInfo)
Creates and returns a new URL class loader based on the callers class loader and the callers related additional classes which may exist in a specified path. |
java.net.URLClassLoader |
getXmlBlasterClassLoader()
Creates and returns a new URL class loader based on the callers class loader and the callers related additional classes which may exist in a specified path. |
void |
init(Global glob)
|
static java.lang.String |
which(java.lang.Object caller,
java.lang.String className)
Prints the absolute pathname of the class file containing the specified class name, as prescribed by the current classpath. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String ME
Constructor Detail |
---|
public StandaloneClassLoaderFactory()
public StandaloneClassLoaderFactory(Global glob)
Method Detail |
---|
public void init(Global glob)
init
in interface ClassLoaderFactory
public java.net.URLClassLoader getPluginClassLoader(PluginInfo pluginInfo) throws XmlBlasterException
getPluginClassLoader
in interface ClassLoaderFactory
XmlBlasterException
public java.net.URLClassLoader getXmlBlasterClassLoader() throws XmlBlasterException
getXmlBlasterClassLoader
in interface ClassLoaderFactory
XmlBlasterException
public static LoaderInfo getLoaderInfo(java.lang.Object caller, java.lang.String plugin, boolean exceptionOnFailure) throws XmlBlasterException
caller
- Type of the calling classplugin
- The plugin name e.g. "org.xmlBlaster.protocol.corba.CorbaDriver"
or nullexceptionOnFailure
- TODO
On
- failure
XmlBlasterException
public static java.lang.String which(java.lang.Object caller, java.lang.String className)
author Mike Clark author Clarkware Consulting
caller
- className
- Name of the class, e.g. "org.xmlBlaster.protocol.corba.CorbaDriver"
public static java.lang.String getDirectoryForWrite()
public static java.lang.String directoryForWrite(java.lang.String path)
path
-
|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |