Created
February 11, 2017 19:08
-
-
Save ljnelson/e44ef2a23e2923dd35a529ab9fb9baa5 to your computer and use it in GitHub Desktop.
This file contains 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
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 = i.select(Configurations.class); | |
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