Last active
August 29, 2015 14:24
-
-
Save Kotlin-Native/49a1dfe68fe976be4270 to your computer and use it in GitHub Desktop.
SpringCdiExtension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class SpringCdiExtension implements Extension { | |
| private List<Bean<Object>> cdiBeans = new ArrayList<Bean<Object>>(); | |
| public void addBean(@Observes ProcessBean<Object> bean) { | |
| cdiBeans.add(bean.getBean()); | |
| } | |
| public void connectCdiAndSpring(@Observes AfterBeanDiscovery event, | |
| BeanManager manager) | |
| throws ClassNotFoundException { | |
| … | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment