|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.common.xbean.ClassLoaderXmlPreprocessor
public class ClassLoaderXmlPreprocessor
An advanced xml preprocessor that will create a default class loader for the SU if none is configured.
| Field Summary | |
|---|---|
static java.lang.String |
CLASSPATH_XML
|
static java.lang.String |
LIB_DIR
|
| Constructor Summary | |
|---|---|
ClassLoaderXmlPreprocessor(java.io.File root)
|
|
ClassLoaderXmlPreprocessor(java.io.File root,
ServiceMixComponent component)
|
|
| Method Summary | |
|---|---|
protected java.lang.ClassLoader |
getClassLoader(org.apache.xbean.spring.context.SpringApplicationContext applicationContext,
org.springframework.beans.factory.xml.XmlBeanDefinitionReader reader,
org.w3c.dom.Document document)
|
protected java.net.URL[] |
getDefaultLocations()
|
protected java.util.List<java.net.URL> |
getFileResources(java.lang.String location)
Get the URLs for a file: protocol based location. |
protected java.util.List<java.net.URL> |
getJarResources(java.lang.String location)
Get the URLs for a jar: protocol based location. |
protected java.lang.ClassLoader |
getParentClassLoader(org.apache.xbean.spring.context.SpringApplicationContext applicationContext)
|
protected java.util.List<java.net.URL> |
getResources(java.lang.String location)
Get the URLs for a classpath location. |
void |
preprocess(org.apache.xbean.spring.context.SpringApplicationContext applicationContext,
org.springframework.beans.factory.xml.XmlBeanDefinitionReader reader,
org.w3c.dom.Document document)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLASSPATH_XML
public static final java.lang.String LIB_DIR
| Constructor Detail |
|---|
public ClassLoaderXmlPreprocessor(java.io.File root)
public ClassLoaderXmlPreprocessor(java.io.File root,
ServiceMixComponent component)
| Method Detail |
|---|
public void preprocess(org.apache.xbean.spring.context.SpringApplicationContext applicationContext,
org.springframework.beans.factory.xml.XmlBeanDefinitionReader reader,
org.w3c.dom.Document document)
preprocess in interface org.apache.xbean.spring.context.SpringXmlPreprocessorprotected java.util.List<java.net.URL> getResources(java.lang.String location)
Get the URLs for a classpath location. This method supports standard
relative file location, file: URL location (including entries
regexp filter support), jar: URL location (including entries
regexp filter support).
location - the location where to get the URLs.
protected java.util.List<java.net.URL> getJarResources(java.lang.String location)
Get the URLs for a jar: protocol based location. This method supports regexp to add several entries.
jar:file:/path/to/my.ear!/entry.jar jar:file:/path/to/my.ear!/en*.jar
location - the jar location.
protected java.util.List<java.net.URL> getFileResources(java.lang.String location)
Get the URLs for a file: protocol based location. This methods supports regexp to add several entries.
file:/path/to/my.jar file:/path/to/my*.jar
location -
protected java.net.URL[] getDefaultLocations()
protected java.lang.ClassLoader getClassLoader(org.apache.xbean.spring.context.SpringApplicationContext applicationContext,
org.springframework.beans.factory.xml.XmlBeanDefinitionReader reader,
org.w3c.dom.Document document)
protected java.lang.ClassLoader getParentClassLoader(org.apache.xbean.spring.context.SpringApplicationContext applicationContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||