removed class level tangle
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
|
||||
package org.springframework.integration.twitter.config;
|
||||
|
||||
import static org.springframework.integration.twitter.config.TwitterNamespaceHandler.BASE_PACKAGE;
|
||||
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
import org.springframework.beans.BeanMetadataElement;
|
||||
@@ -35,6 +33,9 @@ import org.springframework.util.StringUtils;
|
||||
*/
|
||||
public class TwitterInboundChannelAdapterParser extends AbstractPollingInboundChannelAdapterParser {
|
||||
|
||||
private static final String BASE_PACKAGE = "org.springframework.integration.twitter";
|
||||
|
||||
|
||||
@Override
|
||||
protected BeanMetadataElement parseSource(Element element, ParserContext parserContext) {
|
||||
String className = determineClassName(element, parserContext);
|
||||
|
||||
@@ -27,9 +27,6 @@ import org.springframework.integration.config.xml.AbstractIntegrationNamespaceHa
|
||||
*/
|
||||
public class TwitterNamespaceHandler extends AbstractIntegrationNamespaceHandler {
|
||||
|
||||
static String BASE_PACKAGE = "org.springframework.integration.twitter";
|
||||
|
||||
|
||||
public void init() {
|
||||
// inbound
|
||||
registerBeanDefinitionParser("inbound-channel-adapter", new TwitterInboundChannelAdapterParser());
|
||||
|
||||
@@ -16,8 +16,6 @@
|
||||
|
||||
package org.springframework.integration.twitter.config;
|
||||
|
||||
import static org.springframework.integration.twitter.config.TwitterNamespaceHandler.BASE_PACKAGE;
|
||||
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
import org.springframework.beans.factory.support.AbstractBeanDefinition;
|
||||
@@ -34,6 +32,9 @@ import org.springframework.integration.config.xml.AbstractOutboundChannelAdapter
|
||||
*/
|
||||
public class TwitterOutboundChannelAdapterParser extends AbstractOutboundChannelAdapterParser {
|
||||
|
||||
private static final String BASE_PACKAGE = "org.springframework.integration.twitter";
|
||||
|
||||
|
||||
@Override
|
||||
protected AbstractBeanDefinition parseConsumer(Element element, ParserContext parserContext) {
|
||||
String className = determineClassName(element, parserContext);
|
||||
|
||||
Reference in New Issue
Block a user