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