-
Notifications
You must be signed in to change notification settings - Fork 266
How to Create New Components
In order to simplify the process of writing custom components for Spring Integration, we provide a dedicated Adapter Template for SpringSource Tool Suite (STS). This template is part of the Spring Integation Templates project.
The Spring Integration Adapter Template creates a fully functional Spring Integration Module. The template will create the following commonly used components:
- inbound-channel-adapter
- outbound-channel-adapter
- outbound-gateway
However, even if you create other types of components, this template should give you valuable insights on how to develop those. This template also provides examples on how to provide XML Namespace support, develop the necessary namespace parser classes etc.
In order to use the latest templates you will need to use STS version 3.0.0.M3 or higher. You can download STS from here.
As Spring Integration uses Gradle as its build tool, we generally recommend it also for creating your own templates. As such, the provided Spring Integration Adapter Template uses Gradle as well. Therefore, please make sure that your installation of STS has the Gradle support installed.
- Go File --> New --> Spring Template Project
- The Template Selection screen will appear
- Select Integration --> Spring Integration Adapter Template Project
- Press
Next
- Fill out the details of your project
- Press
Finish
The created template should build successfully from within STS or by executing:
./gradlew build
You will see many more available commands with ./gradlew tasks
.