in components-starter/camel-xmlsecurity-starter/src/main/java/org/apache/camel/component/xmlsecurity/springboot/XmlVerifierComponentConverter.java [51:72]
public Object convert(
Object source,
TypeDescriptor sourceType,
TypeDescriptor targetType) {
if (source == null) {
return null;
}
String ref = source.toString();
if (!ref.startsWith("#")) {
return null;
}
ref = ref.startsWith("#bean:") ? ref.substring(6) : ref.substring(1);
switch (targetType.getName()) {
case "javax.xml.crypto.KeySelector": return applicationContext.getBean(ref, javax.xml.crypto.KeySelector.class);
case "org.apache.camel.component.xmlsecurity.api.ValidationFailedHandler": return applicationContext.getBean(ref, org.apache.camel.component.xmlsecurity.api.ValidationFailedHandler.class);
case "org.apache.camel.component.xmlsecurity.api.XmlSignature2Message": return applicationContext.getBean(ref, org.apache.camel.component.xmlsecurity.api.XmlSignature2Message.class);
case "org.apache.camel.component.xmlsecurity.api.XmlSignatureChecker": return applicationContext.getBean(ref, org.apache.camel.component.xmlsecurity.api.XmlSignatureChecker.class);
case "javax.xml.crypto.URIDereferencer": return applicationContext.getBean(ref, javax.xml.crypto.URIDereferencer.class);
case "org.apache.camel.component.xmlsecurity.processor.XmlVerifierConfiguration": return applicationContext.getBean(ref, org.apache.camel.component.xmlsecurity.processor.XmlVerifierConfiguration.class);
}
return null;
}