
de.codecentric.mule.assertobjectequals.generated.config.AssertObjectEqualsNamespaceHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of assert-object-equals-connector Show documentation
Show all versions of assert-object-equals-connector Show documentation
A Mule connector for comparing object structures (Map/List) or XML in MUnit tests.
The newest version!
package de.codecentric.mule.assertobjectequals.generated.config;
import javax.annotation.Generated;
import org.mule.config.MuleManifest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.FatalBeanException;
import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
/**
* Registers bean definitions parsers for handling elements in http://www.mulesoft.org/schema/mule/assert-object-equals
.
*
*/
@SuppressWarnings("all")
@Generated(value = "Mule DevKit Version 3.9.7", date = "2019-02-27T07:16:01+01:00", comments = "Build mule-devkit-3.9.7.2818.62a60e1")
public class AssertObjectEqualsNamespaceHandler
extends NamespaceHandlerSupport
{
private static Logger logger = LoggerFactory.getLogger(AssertObjectEqualsNamespaceHandler.class);
private void handleException(String beanName, String beanScope, NoClassDefFoundError noClassDefFoundError) {
String muleVersion = "";
try {
muleVersion = MuleManifest.getProductVersion();
} catch (Exception _x) {
logger.error("Problem while reading mule version");
}
logger.error(((((("Cannot launch the mule app, the "+ beanScope)+" [")+ beanName)+"] within the connector [assert-object-equals] is not supported in mule ")+ muleVersion));
throw new FatalBeanException(((((("Cannot launch the mule app, the "+ beanScope)+" [")+ beanName)+"] within the connector [assert-object-equals] is not supported in mule ")+ muleVersion), noClassDefFoundError);
}
/**
* Invoked by the {@link DefaultBeanDefinitionDocumentReader} after construction but before any custom elements are parsed.
* @see NamespaceHandlerSupport#registerBeanDefinitionParser(String, BeanDefinitionParser)
*
*/
public void init() {
try {
this.registerBeanDefinitionParser("config", new AssertObjectEqualsConnectorConfigDefinitionParser());
} catch (NoClassDefFoundError ex) {
handleException("config", "@Config", ex);
}
try {
this.registerBeanDefinitionParser("compare-objects", new CompareObjectsDefinitionParser());
} catch (NoClassDefFoundError ex) {
handleException("compare-objects", "@Processor", ex);
}
try {
this.registerBeanDefinitionParser("compare-xml", new CompareXmlDefinitionParser());
} catch (NoClassDefFoundError ex) {
handleException("compare-xml", "@Processor", ex);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy