org.apache.xbean.server.spring.configuration
Class ClassLoaderXmlPreprocessor
java.lang.Object
org.apache.xbean.server.spring.configuration.ClassLoaderXmlPreprocessor
- All Implemented Interfaces:
- org.apache.xbean.spring.context.SpringXmlPreprocessor
public class ClassLoaderXmlPreprocessor
- extends Object
- implements org.apache.xbean.spring.context.SpringXmlPreprocessor
ClassLoaderXmlPreprocessor extracts a ClassLoader definition from the xml document, builds a class loader, assigns
the class loader to the application context and xml reader, and removes the classpath element from document.
- Since:
- 2.0
- Author:
- Dain Sundstrom
Method Summary |
void |
preprocess(org.apache.xbean.spring.context.SpringApplicationContext applicationContext,
org.springframework.beans.factory.xml.XmlBeanDefinitionReader reader,
Document document)
Extracts a ClassLoader definition from the xml document, builds a class loader, assigns
the class loader to the application context and xml reader, and removes the classpath element from document. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassLoaderXmlPreprocessor
public ClassLoaderXmlPreprocessor(Repository repository)
- Creates a ClassLoaderXmlPreprocessor that uses the specified repository to resolve the class path locations.
- Parameters:
repository
- the repository used to resolve the class path locations
preprocess
public void preprocess(org.apache.xbean.spring.context.SpringApplicationContext applicationContext,
org.springframework.beans.factory.xml.XmlBeanDefinitionReader reader,
Document document)
- Extracts a ClassLoader definition from the xml document, builds a class loader, assigns
the class loader to the application context and xml reader, and removes the classpath element from document.
- Specified by:
preprocess
in interface org.apache.xbean.spring.context.SpringXmlPreprocessor
- Parameters:
applicationContext
- the application context on which the class loader will be setreader
- the xml reader on which the class loader will be setdocument
- the xml document to inspect
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.