XmlBlaster Logo



XmlBlaster Logo

Type NEW
Priority LOW
Topic XmlBlaster provides an own ClassLoder.

Assume you have an application, which should start xmlBlaster in an extra thread, but have own ORB or XML classes.

The XmlBlasterClassloader has its own classpath, which based on the applications classpath, but put the xmlBlaster.jar on the first place.

EmbeddedXmlBlaster loads the first class of xmlBlaster ('org.xmlBlaster.Main') with the XmlBlasterClassloader. All depending classes are loaded also by XmlBlasterClassLoader.

XmlBlasterClassLoader is a derivation of URLClassLoader.

This ClassLoader is used by the EmbeddedXmlBlaster and can be set to a dedicated classpath which is derived users classpath.

An instance of the XmlblasterClassLoader will be created by the ClassLoaderFactory on demand.

The system classpath or the environment will be reorganized. xmlBlaster.jar will be put on the first place.


EmbeddedXmlBlaster server = EmbeddedXmlBlaster.startXmlBlaster(args);
EmbeddedXmlBlaster.stopXmlBlaster( server );

Property Default / Example Description Implemented
classloader.xmlBlaster false As default the specific xmlBlaster classloader is switched off yes

NOTE: Configuration parameters are specified on command line (-someValue 17) or in the xmlBlaster.properties file (someValue=17). See requirement "util.property" for details.
Columns named Impl tells you if the feature is implemented.
Columns named Hot tells you if the configuration is changeable in hot operation.

      Write some TestCase!?
See REQ util.classloader.ClassLoaderFactory
See API org.xmlBlaster.util.classloader.XmlBlasterClassLoader
See API org.xmlBlaster.util.classloader.ClassLoaderFactory
See API java.net.URLClassLoader

This page is generated from the requirement XML file xmlBlaster/doc/requirements/util.classloader.XmlBlasterClassLoader.xml

Back to overview