public class MyListenerProcessor implements BeanPostProcessor {
@Override
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
return bean;
} @Override
public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
Method[] methods = ReflectionUtils.getAllDeclaredMethods(bean.getClass());
if (methods != null) {
for (Method method : methods) {
MyListener myListener = AnnotationUtils.findAnnotation(method, MyListener.class);
// process
}
}
return bean;
}
}
相关文章
- 04-12ff
- 04-12Codeforces round FF
- 04-12DP Codeforces Round #FF (Div. 1) A. DZY Loves Sequences
- 04-12ff
- 04-12R语音读取txt报错:UTF-16不支持 或者<ff><fe><63>‘多字节字符串有错
- 04-12win10更新后命令行出现[0x7ff88f47e0a4] anomaly: use of rex.w is meaningless (default operand size is 64)提示
- 04-12Exceeded maximum number of retries. Exceeded max scheduling attempts 3 for instance 7d90eb80-29e2-4238-b658-ade407ff9456. Last exception: [u'Traceback (most recent call last):\n', u' File "/usr/lib/py
- 04-12systemverilog新增的always_comb,always_ff,和always_latch语句
- 04-12关闭浏览器输入框自动补齐 兼容IE,FF,Chrome等主流浏览器
- 04-12appearance格式化表单元素的边框,在chrome和FF下鼠标点击时会多出一个蓝色边框