-
Notifications
You must be signed in to change notification settings - Fork 267
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 Spring Source Tool Suite (STS). This template is part of the Spring Integation Teamplates project.
The 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 as the template also provides examples on how to provide XML Namespace support, the necessary parser classes etc.
In order to use the latest templates you will need to use STS 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 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