@@ -0,0 +1,1433 @@
+package com.gss.gmo.cao.integration.xmpp.component.core;%0D%0A%0D%0Aimport static org.springframework.util.Assert.notNull;%0D%0A%0D%0Aimport org.springframework.beans.factory.BeanFactory;%0D%0Aimport org.springframework.integration.gateway.MessagingGatewaySupport;%0D%0A%0D%0Aimport com.gss.gmo.cao.integration.xmpp.component.config.XmppComponentNamespaceHandler;%0D%0A%0D%0Apublic class AbstractComponentManagerAwareGatewaySupport extends MessagingGatewaySupport %7B%0D%0A%0D%0A%09protected ComponentManager componentManager;%0D%0A%0D%0A%09protected boolean initialized;%0D%0A%0D%0A%09public AbstractComponentManagerAwareGatewaySupport(ComponentManager componentManager) %7B%0D%0A%09%09notNull(componentManager, %22ComponentManager must not be null%22);%0D%0A%09%09this.componentManager = componentManager;%0D%0A%09%7D%0D%0A%0D%0A%09@Override%0D%0A%09protected void onInit() throws Exception %7B%0D%0A%09%09super.onInit();%0D%0A%09%09BeanFactory beanFactory = this.getBeanFactory();%0D%0A%09%09if (this.componentManager == null && beanFactory != null) %7B%0D%0A%09%09%09this.componentManager = beanFactory.getBean(XmppComponentNamespaceHandler.XMPP_COMPONENT_MANAGER_BEAN_NAME, ComponentManager.class);%0D%0A%09%09%7D%0D%0A%09%09notNull(this.componentManager, %22Failed to resolve ComponentManager. ComponentManager must either be set explicitly %22%0D%0A%09%09%09%09+ %22via 'component-manager' attribute or implicitly by registering a bean with the name 'xmppComponentManager' and of type %22%0D%0A%09%09%09%09+ %22'org.jivesoftware.whack.ExternalComponentManager' in the Application Context.%22);%0D%0A%09%09this.initialized = true;%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

add new class