com.github.drinkjava2.jdbpro
Interface IocTool
public interface IocTool
IocTool have a method getBean(Class> configClass) to create a bean instance
from configClass class, note: result object type may different to configClass
itself, that's why here called "configClass", an example can see
testGuessAnnotationHasParam() unit test in HandlersTest.java
IocTool here is not used for transaction control, but usually can share use
the same transaction control IOC tool.
- Since:
- 1.0.8
- Author:
- Yong Zhu
|
Method Summary |
|
getBean(Class<?> configClass)
Create a bean instance from configClass class, note: result object type may
different to configClass itself, that's why here called "configClass", an
example can see testGuessAnnotationHasParam() unit test in HandlersTest.java |
getBean
<T> T getBean(Class<?> configClass)
- Create a bean instance from configClass class, note: result object type may
different to configClass itself, that's why here called "configClass", an
example can see testGuessAnnotationHasParam() unit test in HandlersTest.java
- Parameters:
configClass - The configuration class
- Returns:
- The bean created from configuration class
Copyright © 2018. All rights reserved.