zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.codingapi.tx.motan.listener;
 
import com.codingapi.tx.listener.service.InitService;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;
 
/**
 * Created by lorne on 2017/7/1.
 */
@Component
public class TransactionSocketListener implements ApplicationContextAware {
 
 
    @Autowired
    private InitService initService;
 
 
    @Override
    public void setApplicationContext(ApplicationContext event) throws BeansException {
        initService.start();
    }
 
}