yanwte-spring / com.github.winteryoung.yanwte.spring.internals / YanwteSpringHook

YanwteSpringHook

class YanwteSpringHook : InitializingBean, ApplicationContextAware

Define a bean of this class in your spring application context. This hook will integrate Spring to Yanwte.

Note, the basePackage of your program is required to initialize this class. Be very careful to set this right. You may cause other part of the system wrong if you set this wrong. For example, if your classes are all located under com.yourcompany.yourdepartment.yourproject, then set this to basePackage.

Author
Winter Young

Since
2016/1/23

Constructors

<init> YanwteSpringHook()

Define a bean of this class in your spring application context. This hook will integrate Spring to Yanwte.

Properties

basePackage var basePackage: String?

The base package of your program. e.g. The base package of yanwte is com.github.winteryoung.yanwte

Functions

afterPropertiesSet fun afterPropertiesSet(): Unit
setApplicationContext fun setApplicationContext(applicationContext: ApplicationContext): Unit