Skip to content

Instantly share code, notes, and snippets.

@Kotlin-Native
Last active August 29, 2015 14:24
Show Gist options
  • Select an option

  • Save Kotlin-Native/49a1dfe68fe976be4270 to your computer and use it in GitHub Desktop.

Select an option

Save Kotlin-Native/49a1dfe68fe976be4270 to your computer and use it in GitHub Desktop.
SpringCdiExtension
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