}
public void configure(Configuration configuration) throws ConfigurationException {
Configuration clazzConf = configuration.getChild("class", false);
if (clazzConf != null) {
ClassLoaderManager clazzLoader = null;
try {
String clazzName = clazzConf.getValue();
String mappingURI = clazzConf.getAttribute("mapping");
if (mappingURI != null) {
mapping = new Mapping();
// resolve
//mapping.loadMapping(getFile(resolver,mappingURI));
getLogger().debug("bean class = [" + clazzName + "] mapping [" + mappingURI + "]");
} else {
getLogger().debug("bean class = [" + clazzName + "] using default mapping");
}
clazzLoader = (ClassLoaderManager) manager.lookup(ClassLoaderManager.ROLE);
Class clazz = clazzLoader.loadClass(clazzName);
setBean(clazz.newInstance());
} catch (ComponentException e) {
throw new ConfigurationException("", e);
} catch (ClassNotFoundException e) {
throw new ConfigurationException("", e);