Skip to content

新增MessagePipeConfiguration配置类的自定义Customizer接口 #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hengboy opened this issue Sep 7, 2020 · 1 comment · Fixed by #68
Closed

新增MessagePipeConfiguration配置类的自定义Customizer接口 #67

hengboy opened this issue Sep 7, 2020 · 1 comment · Fixed by #68
Assignees
Labels
kind/feature New features

Comments

@hengboy
Copy link
Member

hengboy commented Sep 7, 2020

新增除了application.yml配置文件的方式进行配置MessagePipeConfiguration类。

@hengboy hengboy added the kind/feature New features label Sep 7, 2020
@hengboy hengboy self-assigned this Sep 7, 2020
@hengboy
Copy link
Member Author

hengboy commented Sep 7, 2020

MessagePipeConfigurationCustomizer

@FunctionalInterface
public interface MessagePipeConfigurationCustomizer {
    /**
     * To implement this method, it can be modified according to the parameter object
     *
     * @param configuration The {@link MessagePipeConfiguration} instance
     */
    void customize(MessagePipeConfiguration configuration);
}

项目中实现该接口,并将该接口的实现类的实例注册到Spring IOC容器内,即可实现自定义配置MessagePipeConfiguration对象的相关参数。

@hengboy hengboy linked a pull request Sep 7, 2020 that will close this issue
@hengboy hengboy closed this as completed Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant