Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
private final void installConfigurationValueProducerMethods(@Observes final AfterBeanDiscovery event, final BeanManager beanManager) {
if (event != null && beanManager != null) {
final Instance<Object> i = beanManager.createInstance();
assert i != null;
final Instance<Configurations> configurationsInstance =;
assert configurationsInstance != null;
if (configurationsInstance.isResolvable()) {
final Configurations configurations = configurationsInstance.get();
assert configurations != null;
// TODO: get Types, add producer methods for them, etc.!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment