// fire mapping event
fireEvent(bundle, EVENT_MAPPING_REMOVED);
}
private void loadMappings() {
MapperClassLoader newMapperClassLoader = new MapperClassLoader();
ReflectionUtils.setClassLoader(newMapperClassLoader);
ArrayList<URL> urlList = new ArrayList<URL>();
for (Iterator<Bundle> bi = bundles.iterator(); bi.hasNext();) {
Bundle bundle = bi.next();
String mapperHeader = (String) bundle.getHeaders().get(
MAPPER_BUNDLE_HEADER);
if (mapperHeader == null) {
// no components in the bundle, abandon
log.debug("registerMapperClient: Bundle {} has no mappings",
bundle.getSymbolicName());
continue;
}
newMapperClassLoader.registerBundle(bundle);
StringTokenizer tokener = new StringTokenizer(mapperHeader, ",");
while (tokener.hasMoreTokens()) {
String mapping = tokener.nextToken().trim();
URL mappingURL = bundle.getResource(mapping);