6 |
7 | For further API reference and developer documentation, see the
8 | Spring
9 | Integration reference documentation.
10 | That documentation contains more detailed, developer-targeted
11 | descriptions, with conceptual overviews, definitions of terms,
12 | workarounds, and working code examples.
13 |
14 |
15 |
16 | If you are interested in commercial training, consultancy, and
17 | support for Spring Integration, please visit
18 | https://spring.io/
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/si-template-projects/adapter/src/dist/changelog.txt:
--------------------------------------------------------------------------------
1 | Spring Integration SIAdapterUpperPrefix Adapter CHANGELOG
2 | =========================================
3 |
4 | For the full detailed changelog, see:
5 | https://....
6 |
7 |
8 | Changes in version SI-TEMPLATE-VERSION GA (insert date here)
9 | https://....
10 |
11 |
12 | *** GENERAL ***
13 |
14 | Upgraded Spring Framework dependency to ...
15 | ...
16 |
--------------------------------------------------------------------------------
/si-template-projects/adapter/src/dist/notice.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | == NOTICE file corresponding to section 4 d of the Apache License, ==
3 | == Version 2.0, in this case for the Spring Integration distribution. ==
4 | ========================================================================
5 |
6 | This product includes software developed by
7 | the Apache Software Foundation (https://www.apache.org).
8 |
9 | The end-user documentation included with a redistribution, if any,
10 | must include the following acknowledgement:
11 |
12 | "This product includes software developed by the Spring Framework
13 | Project (https://spring.io/)."
14 |
15 | Alternatively, this acknowledgement may appear in the software itself,
16 | if and wherever such third-party acknowledgements normally appear.
17 |
18 | The names "Spring", "Spring Framework", and "Spring Integration" must
19 | not be used to endorse or promote products derived from this software
20 | without prior written permission. For written permission, please contact
21 | enquiries@springsource.com.
22 |
--------------------------------------------------------------------------------
/si-template-projects/adapter/src/dist/readme.txt:
--------------------------------------------------------------------------------
1 | Spring Integration SIAdapterUpperPrefix Adapter
2 | -----------------------------------
3 |
4 | To find out what has changed since any earlier releases, see 'changelog.txt'.
5 |
6 | Please consult the documentation located within the 'docs/reference' directory
7 | of this release and also visit the official Spring Integration home at
8 | https://spring.io/projects/spring-integration
9 |
10 | There you will find links to the forum, issue tracker, and several other resources.
11 |
12 | See https://github.com/SpringSource/spring-integration#readme for additional
13 | information including instructions on building from source.
14 |
--------------------------------------------------------------------------------
/si-template-projects/adapter/src/main/java/sipackage/SIAdapterUpperPrefixHeaders.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2002-2013 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package sipackage;
18 |
19 | /**
20 | * SIAdapterUpperPrefix adapter specific message headers.
21 | *
22 | * @author SI-TEMPLATE-AUTHOR
23 | * @since SI-TEMPLATE-VERSION
24 | */
25 | public class SIAdapterUpperPrefixHeaders {
26 |
27 | private static final String PREFIX = "siAdapterLowerPrefix_";
28 |
29 | public static final String EXAMPLE = PREFIX + "example_";
30 |
31 | /** Noninstantiable utility class */
32 | private SIAdapterUpperPrefixHeaders() {
33 | throw new AssertionError();
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/si-template-projects/adapter/src/main/java/sipackage/config/xml/SIAdapterUpperPrefixInboundChannelAdapterParser.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2002-2013 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package sipackage.config.xml;
17 |
18 | import org.springframework.beans.BeanMetadataElement;
19 | import org.springframework.beans.factory.config.BeanDefinition;
20 | import org.springframework.beans.factory.parsing.BeanComponentDefinition;
21 | import org.springframework.beans.factory.support.BeanDefinitionBuilder;
22 | import org.springframework.beans.factory.xml.ParserContext;
23 | import org.springframework.integration.config.xml.AbstractPollingInboundChannelAdapterParser;
24 | import org.springframework.integration.config.xml.IntegrationNamespaceUtils;
25 | import org.w3c.dom.Element;
26 |
27 | import sipackage.inbound.SIAdapterUpperPrefixPollingChannelAdapter;
28 |
29 | /**
30 | * The SIAdapterUpperPrefix Inbound Channel adapter parser
31 | *
32 | * @author SI-TEMPLATE-AUTHOR
33 | * @since SI-TEMPLATE-VERSION
34 | *
35 | */
36 | public class SIAdapterUpperPrefixInboundChannelAdapterParser extends AbstractPollingInboundChannelAdapterParser{
37 |
38 |
39 | protected BeanMetadataElement parseSource(Element element, ParserContext parserContext) {
40 |
41 | final BeanDefinitionBuilder siAdapterLowerPrefixPollingChannelAdapterBuilder = BeanDefinitionBuilder
42 | .genericBeanDefinition(SIAdapterUpperPrefixPollingChannelAdapter.class);
43 |
44 | final BeanDefinitionBuilder siAdapterLowerPrefixExecutorBuilder = SIAdapterUpperPrefixParserUtils.getSIAdapterUpperPrefixExecutorBuilder(element, parserContext);
45 |
46 | IntegrationNamespaceUtils.setValueIfAttributeDefined(siAdapterLowerPrefixExecutorBuilder, element, "example-property");
47 |
48 | final BeanDefinition siAdapterLowerPrefixExecutorBuilderBeanDefinition = siAdapterLowerPrefixExecutorBuilder.getBeanDefinition();
49 | final String channelAdapterId = this.resolveId(element, siAdapterLowerPrefixPollingChannelAdapterBuilder.getRawBeanDefinition(), parserContext);
50 | final String siAdapterLowerPrefixExecutorBeanName = channelAdapterId + ".siAdapterLowerPrefixExecutor";
51 |
52 | parserContext.registerBeanComponent(new BeanComponentDefinition(siAdapterLowerPrefixExecutorBuilderBeanDefinition, siAdapterLowerPrefixExecutorBeanName));
53 |
54 | siAdapterLowerPrefixPollingChannelAdapterBuilder.addConstructorArgReference(siAdapterLowerPrefixExecutorBeanName);
55 |
56 | return siAdapterLowerPrefixPollingChannelAdapterBuilder.getBeanDefinition();
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/si-template-projects/adapter/src/main/java/sipackage/config/xml/SIAdapterUpperPrefixNamespaceHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2002-2013 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package sipackage.config.xml;
17 |
18 | import org.springframework.integration.config.xml.AbstractIntegrationNamespaceHandler;
19 |
20 | /**
21 | * The namespace handler for the SIAdapterUpperPrefix namespace
22 | *
23 | * @author SI-TEMPLATE-AUTHOR
24 | * @since SI-TEMPLATE-VERSION
25 | *
26 | */
27 | public class SIAdapterUpperPrefixNamespaceHandler extends AbstractIntegrationNamespaceHandler {
28 |
29 | /* (non-Javadoc)
30 | * @see org.springframework.beans.factory.xml.NamespaceHandler#init()
31 | */
32 | public void init() {
33 | this.registerBeanDefinitionParser("inbound-channel-adapter", new SIAdapterUpperPrefixInboundChannelAdapterParser());
34 | this.registerBeanDefinitionParser("outbound-channel-adapter", new SIAdapterUpperPrefixOutboundChannelAdapterParser());
35 | this.registerBeanDefinitionParser("outbound-gateway", new SIAdapterUpperPrefixOutboundGatewayParser());
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/si-template-projects/adapter/src/main/java/sipackage/config/xml/SIAdapterUpperPrefixOutboundChannelAdapterParser.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2002-2013 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package sipackage.config.xml;
17 |
18 | import org.springframework.beans.factory.config.BeanDefinition;
19 | import org.springframework.beans.factory.parsing.BeanComponentDefinition;
20 | import org.springframework.beans.factory.support.AbstractBeanDefinition;
21 | import org.springframework.beans.factory.support.BeanDefinitionBuilder;
22 | import org.springframework.beans.factory.xml.ParserContext;
23 | import org.springframework.integration.config.xml.AbstractOutboundChannelAdapterParser;
24 | import org.springframework.integration.config.xml.IntegrationNamespaceUtils;
25 | import org.w3c.dom.Element;
26 |
27 | import sipackage.outbound.SIAdapterUpperPrefixOutboundGateway;
28 |
29 | /**
30 | * The parser for the SIAdapterUpperPrefix Outbound Channel Adapter.
31 | *
32 | * @author SI-TEMPLATE-AUTHOR
33 | * @since SI-TEMPLATE-VERSION
34 | *
35 | */
36 | public class SIAdapterUpperPrefixOutboundChannelAdapterParser extends AbstractOutboundChannelAdapterParser {
37 |
38 | @Override
39 | protected boolean shouldGenerateId() {
40 | return false;
41 | }
42 |
43 | @Override
44 | protected boolean shouldGenerateIdAsFallback() {
45 | return true;
46 | }
47 |
48 | @Override
49 | protected AbstractBeanDefinition parseConsumer(Element element, ParserContext parserContext) {
50 |
51 | final BeanDefinitionBuilder siAdapterLowerPrefixOutboundChannelAdapterBuilder = BeanDefinitionBuilder.genericBeanDefinition(SIAdapterUpperPrefixOutboundGateway.class);
52 | final BeanDefinitionBuilder siAdapterLowerPrefixExecutorBuilder = SIAdapterUpperPrefixParserUtils.getSIAdapterUpperPrefixExecutorBuilder(element, parserContext);
53 |
54 | IntegrationNamespaceUtils.setValueIfAttributeDefined(siAdapterLowerPrefixExecutorBuilder, element, "example-property");
55 |
56 | final BeanDefinition siAdapterLowerPrefixExecutorBuilderBeanDefinition = siAdapterLowerPrefixExecutorBuilder.getBeanDefinition();
57 | final String channelAdapterId = this.resolveId(element, siAdapterLowerPrefixOutboundChannelAdapterBuilder.getRawBeanDefinition(), parserContext);
58 | final String siAdapterLowerPrefixExecutorBeanName = channelAdapterId + ".siAdapterLowerPrefixExecutor";
59 |
60 | parserContext.registerBeanComponent(new BeanComponentDefinition(siAdapterLowerPrefixExecutorBuilderBeanDefinition, siAdapterLowerPrefixExecutorBeanName));
61 |
62 | siAdapterLowerPrefixOutboundChannelAdapterBuilder.addConstructorArgReference(siAdapterLowerPrefixExecutorBeanName);
63 | siAdapterLowerPrefixOutboundChannelAdapterBuilder.addPropertyValue("producesReply", Boolean.FALSE);
64 |
65 | return siAdapterLowerPrefixOutboundChannelAdapterBuilder.getBeanDefinition();
66 |
67 | }
68 |
69 | }
70 |
--------------------------------------------------------------------------------
/si-template-projects/adapter/src/main/java/sipackage/config/xml/SIAdapterUpperPrefixOutboundGatewayParser.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2002-2013 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package sipackage.config.xml;
17 |
18 | import org.springframework.beans.factory.config.BeanDefinition;
19 | import org.springframework.beans.factory.parsing.BeanComponentDefinition;
20 | import org.springframework.beans.factory.support.BeanDefinitionBuilder;
21 | import org.springframework.beans.factory.xml.ParserContext;
22 | import org.springframework.integration.config.xml.AbstractConsumerEndpointParser;
23 | import org.springframework.integration.config.xml.IntegrationNamespaceUtils;
24 | import org.springframework.util.StringUtils;
25 | import org.w3c.dom.Element;
26 |
27 | import sipackage.outbound.SIAdapterUpperPrefixOutboundGateway;
28 |
29 | /**
30 | * The Parser for SIAdapterUpperPrefix Outbound Gateway.
31 | *
32 | * @author SI-TEMPLATE-AUTHOR
33 | * @since SI-TEMPLATE-VERSION
34 | *
35 | */
36 | public class SIAdapterUpperPrefixOutboundGatewayParser extends AbstractConsumerEndpointParser {
37 |
38 | @Override
39 | protected BeanDefinitionBuilder parseHandler(Element gatewayElement, ParserContext parserContext) {
40 |
41 | final BeanDefinitionBuilder siAdapterLowerPrefixOutboundGatewayBuilder = BeanDefinitionBuilder
42 | .genericBeanDefinition(SIAdapterUpperPrefixOutboundGateway.class);
43 |
44 | IntegrationNamespaceUtils.setValueIfAttributeDefined(siAdapterLowerPrefixOutboundGatewayBuilder, gatewayElement, "reply-timeout", "sendTimeout");
45 |
46 | final String replyChannel = gatewayElement.getAttribute("reply-channel");
47 |
48 | if (StringUtils.hasText(replyChannel)) {
49 | siAdapterLowerPrefixOutboundGatewayBuilder.addPropertyReference("outputChannel", replyChannel);
50 | }
51 |
52 | final BeanDefinitionBuilder siAdapterLowerPrefixExecutorBuilder = SIAdapterUpperPrefixParserUtils.getSIAdapterUpperPrefixExecutorBuilder(gatewayElement, parserContext);
53 |
54 | IntegrationNamespaceUtils.setValueIfAttributeDefined(siAdapterLowerPrefixExecutorBuilder, gatewayElement, "example-property");
55 |
56 | final BeanDefinition siAdapterLowerPrefixExecutorBuilderBeanDefinition = siAdapterLowerPrefixExecutorBuilder.getBeanDefinition();
57 | final String gatewayId = this.resolveId(gatewayElement, siAdapterLowerPrefixOutboundGatewayBuilder.getRawBeanDefinition(), parserContext);
58 | final String siAdapterLowerPrefixExecutorBeanName = gatewayId + ".siAdapterLowerPrefixExecutor";
59 |
60 | parserContext.registerBeanComponent(new BeanComponentDefinition(siAdapterLowerPrefixExecutorBuilderBeanDefinition, siAdapterLowerPrefixExecutorBeanName));
61 |
62 | siAdapterLowerPrefixOutboundGatewayBuilder.addConstructorArgReference(siAdapterLowerPrefixExecutorBeanName);
63 |
64 | return siAdapterLowerPrefixOutboundGatewayBuilder;
65 |
66 | }
67 |
68 | @Override
69 | protected String getInputChannelAttributeName() {
70 | return "request-channel";
71 | }
72 |
73 | }
74 |
--------------------------------------------------------------------------------
/si-template-projects/adapter/src/main/java/sipackage/config/xml/SIAdapterUpperPrefixParserUtils.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2002-2013 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package sipackage.config.xml;
17 |
18 | import org.springframework.beans.factory.config.BeanDefinition;
19 | import org.springframework.beans.factory.support.BeanDefinitionBuilder;
20 | import org.springframework.beans.factory.xml.ParserContext;
21 | import org.springframework.util.Assert;
22 | import org.w3c.dom.Element;
23 |
24 | import sipackage.core.SIAdapterUpperPrefixExecutor;
25 |
26 | /**
27 | * Contains various utility methods for parsing SIAdapterUpperPrefix Adapter
28 | * specific namesspace elements as well as for the generation of the the
29 | * respective {@link BeanDefinition}s.
30 | *
31 | * @author SI-TEMPLATE-AUTHOR
32 | * @since SI-TEMPLATE-VERSION
33 | *
34 | */
35 | public final class SIAdapterUpperPrefixParserUtils {
36 |
37 | /** Prevent instantiation. */
38 | private SIAdapterUpperPrefixParserUtils() {
39 | throw new AssertionError();
40 | }
41 |
42 | /**
43 | * Create a new {@link BeanDefinitionBuilder} for the class {@link SIAdapterUpperPrefixExecutor}.
44 | * Initialize the wrapped {@link SIAdapterUpperPrefixExecutor} with common properties.
45 | *
46 | * @param element Must not be null
47 | * @param parserContext Must not be null
48 | * @return The BeanDefinitionBuilder for the SIAdapterUpperPrefixExecutor
49 | */
50 | public static BeanDefinitionBuilder getSIAdapterUpperPrefixExecutorBuilder(final Element element,
51 | final ParserContext parserContext) {
52 |
53 | Assert.notNull(element, "The provided element must not be null.");
54 | Assert.notNull(parserContext, "The provided parserContext must not be null.");
55 |
56 | final BeanDefinitionBuilder siAdapterLowerPrefixExecutorBuilder = BeanDefinitionBuilder.genericBeanDefinition(SIAdapterUpperPrefixExecutor.class);
57 |
58 | return siAdapterLowerPrefixExecutorBuilder;
59 |
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/si-template-projects/adapter/src/main/java/sipackage/config/xml/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides parser classes to provide Xml namespace support for the SIAdapterUpperPrefix components.
3 | */
4 | package sipackage.config.xml;
--------------------------------------------------------------------------------
/si-template-projects/adapter/src/main/java/sipackage/core/SIAdapterUpperPrefixExecutor.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2002-2013 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package sipackage.core;
17 |
18 | import org.apache.commons.logging.Log;
19 | import org.apache.commons.logging.LogFactory;
20 | import org.springframework.beans.factory.InitializingBean;
21 | import org.springframework.integration.Message;
22 | import org.springframework.integration.support.MessageBuilder;
23 | import org.springframework.util.Assert;
24 |
25 | /**
26 | * Bundles common core logic for the SIAdapterUpperPrefix components.
27 | *
28 | * @author SI-TEMPLATE-AUTHOR
29 | * @since SI-TEMPLATE-VERSION
30 | *
31 | */
32 | public class SIAdapterUpperPrefixExecutor implements InitializingBean {
33 |
34 | private static final Log logger = LogFactory.getLog(SIAdapterUpperPrefixExecutor.class);
35 |
36 | private volatile String exampleProperty;
37 |
38 | /**
39 | * Constructor.
40 | */
41 | public SIAdapterUpperPrefixExecutor() {}
42 |
43 | /**
44 | * Verifies and sets the parameters. E.g. initializes the to be used
45 | */
46 | public void afterPropertiesSet() {
47 | Assert.hasText(this.exampleProperty, "exampleProperty must not be empty.");
48 | }
49 |
50 | /**
51 | * Executes the outbound SIAdapterUpperPrefix Operation.
52 | *
53 | * @param message The Spring Integration input message
54 | * @return The result message payload
55 | *
56 | */
57 | public Object executeOutboundOperation(final Message> message) {
58 |
59 | if (logger.isWarnEnabled()) {
60 | logger.warn("Logic not implemented, yet.");
61 | }
62 |
63 | return message.getPayload();
64 |
65 | }
66 |
67 | /**
68 | * Execute the SIAdapterUpperPrefix operation. Delegates to
69 | * {@link SIAdapterUpperPrefixExecutor#poll(Message)}.
70 | *
71 | * @return The payload object, which may be null.
72 | */
73 | public Object poll() {
74 | return poll(null);
75 | }
76 |
77 | /**
78 | * Execute a retrieving (polling) SIAdapterUpperPrefix operation.
79 | *
80 | * @param requestMessage May be null.
81 | * @return The payload object, which may be null.
82 | */
83 | public Object poll(final Message> requestMessage) {
84 |
85 | if (logger.isWarnEnabled()) {
86 | logger.warn("Logic not implemented, yet.");
87 | }
88 |
89 | if (requestMessage == null) {
90 | return null;
91 | }
92 |
93 | return MessageBuilder.fromMessage(requestMessage).build();
94 | }
95 |
96 | /**
97 | * Example property to illustrate usage of properties in Spring Integration
98 | * components. Replace with your own logic.
99 | *
100 | * @param exampleProperty Must not be null
101 | */
102 | public void setExampleProperty(String exampleProperty) {
103 | Assert.hasText(exampleProperty, "exampleProperty must be neither null nor empty");
104 | this.exampleProperty = exampleProperty;
105 | }
106 |
107 | }
108 |
--------------------------------------------------------------------------------
/si-template-projects/adapter/src/main/java/sipackage/core/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides core classes of the SIAdapterUpperPrefix module.
3 | */
4 | package sipackage.core;
--------------------------------------------------------------------------------
/si-template-projects/adapter/src/main/java/sipackage/inbound/SIAdapterUpperPrefixPollingChannelAdapter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2002-2013 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package sipackage.inbound;
17 |
18 | import org.springframework.integration.Message;
19 | import org.springframework.integration.context.IntegrationObjectSupport;
20 | import org.springframework.integration.core.MessageSource;
21 | import org.springframework.integration.support.MessageBuilder;
22 | import org.springframework.util.Assert;
23 |
24 | import sipackage.core.SIAdapterUpperPrefixExecutor;
25 |
26 | /**
27 | * @author SI-TEMPLATE-AUTHOR
28 | * @since SI-TEMPLATE-VERSION
29 | *
30 | */
31 | public class SIAdapterUpperPrefixPollingChannelAdapter extends IntegrationObjectSupport implements MessageSource