removed class level tangle

This commit is contained in:
Mark Fisher
2010-12-17 15:39:35 -05:00
parent 2e75687ec7
commit e50688fb1d
3 changed files with 6 additions and 7 deletions

View File

@@ -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);

View File

@@ -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());

View File

@@ -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);