Java Code Examples for org.springframework.beans.factory.config.MethodInvokingFactoryBean#setTargetClass()

The following examples show how to use org.springframework.beans.factory.config.MethodInvokingFactoryBean#setTargetClass() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UtilConfig.java    From distributed-transaction-process with MIT License 5 votes vote down vote up
@Bean
public MethodInvokingFactoryBean methodInvokingFactoryBean(MessageSource source) {
    MethodInvokingFactoryBean bean = new MethodInvokingFactoryBean();
    bean.setTargetClass(CheckUtil.class);
    bean.setTargetMethod("setSource");
    bean.setArguments(new Object[]{ source });
    return bean;
}
 
Example 2
Source File: UtilConfig.java    From distributed-transaction-process with MIT License 5 votes vote down vote up
@Bean
public MethodInvokingFactoryBean methodInvokingFactoryBean(MessageSource source) {
    MethodInvokingFactoryBean bean = new MethodInvokingFactoryBean();
    bean.setTargetClass(CheckUtil.class);
    bean.setTargetMethod("setSource");
    bean.setArguments(new Object[]{ source });
    return bean;
}
 
Example 3
Source File: UtilConfig.java    From distributed-transaction-process with MIT License 5 votes vote down vote up
@Bean
public MethodInvokingFactoryBean methodInvokingFactoryBean(MessageSource source) {
    MethodInvokingFactoryBean bean = new MethodInvokingFactoryBean();
    bean.setTargetClass(CheckUtil.class);
    bean.setTargetMethod("setSource");
    bean.setArguments(new Object[]{ source });
    return bean;
}