INT-1338, Added support for property placeholder

This commit is contained in:
Oleg Zhurakousky
2010-08-23 18:10:58 +00:00
parent 3d863a1917
commit 2c7b57448b
7 changed files with 36 additions and 54 deletions

View File

@@ -262,22 +262,4 @@ public abstract class IntegrationNamespaceUtils {
+ " are not allowed together.");
return innerComponentDefinition;
}
public static Class<?> convertFqClassNameToClassObject(String fullyQualifiedClassname, ParserContext parserContext){
Assert.isTrue(StringUtils.hasText(fullyQualifiedClassname), "'fullyQualifiedClassname' must be provided");
Assert.notNull(parserContext, "'parserContext' must be provided");
ClassLoader classLoader = parserContext.getReaderContext().getBeanClassLoader();
if (classLoader == null) {
classLoader = ClassUtils.getDefaultClassLoader();
}
if (classLoader != null){
try {
return classLoader.loadClass(fullyQualifiedClassname);
} catch (Exception e) {
// no handling required, method may return null
}
}
return null;
}
}