public class ClassLoaderXmlPreprocessor
extends java.lang.Object
implements org.apache.xbean.spring.context.SpringXmlPreprocessor
An advanced xml preprocessor that will create a default class loader for the SU if none is configured.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASSPATH_XML |
static java.lang.String |
LIB_DIR |
| Constructor and Description |
|---|
ClassLoaderXmlPreprocessor(java.io.File root) |
ClassLoaderXmlPreprocessor(java.io.File root,
ServiceMixComponent component) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final java.lang.String CLASSPATH_XML
public static final java.lang.String LIB_DIR
public ClassLoaderXmlPreprocessor(java.io.File root)
public ClassLoaderXmlPreprocessor(java.io.File root,
ServiceMixComponent component)
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)
Copyright © 2005-2014 FuseSource. All Rights Reserved.