|
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 org.xmlBlaster.util.classloader.OsgiClassLoaderFactory
public class OsgiClassLoaderFactory
Custom ClassLoaderFactory
for xmlBlaster. This implementation
takes care of ClassCastExceptions in the default
StandaloneClassLoaderFactory
. It assumes that the current
classloader is an instance of URLClassLoader
but it can be an
EclipseClassLoader
or something else. If the default implemenation fails a new
delegating URLCLassLoader
will be returned to the callers. To use this implementation set
xmlBlaster property urlClassLoaderFactory.
Global.getClassLoaderFactory()
,
StandaloneClassLoaderFactory
Field Summary |
---|
Fields inherited from class org.xmlBlaster.util.classloader.StandaloneClassLoaderFactory |
---|
ME |
Constructor Summary | |
---|---|
OsgiClassLoaderFactory()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.xmlBlaster.util.classloader.StandaloneClassLoaderFactory |
---|
directoryForWrite, getDirectoryForWrite, getLoaderInfo, init, which |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OsgiClassLoaderFactory()
Method Detail |
---|
public java.net.URLClassLoader getPluginClassLoader(PluginInfo pluginInfo) throws XmlBlasterException
StandaloneClassLoaderFactory
getPluginClassLoader
in interface ClassLoaderFactory
getPluginClassLoader
in class StandaloneClassLoaderFactory
XmlBlasterException
public java.net.URLClassLoader getXmlBlasterClassLoader() throws XmlBlasterException
StandaloneClassLoaderFactory
getXmlBlasterClassLoader
in interface ClassLoaderFactory
getXmlBlasterClassLoader
in class StandaloneClassLoaderFactory
XmlBlasterException
|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |