Last active
February 11, 2017 19:30
-
-
Save ljnelson/f146c07f3fceac4231c4b0605516fb4a 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
// Note: no @Produces! | |
@ConfigurationValue | |
@Dependent | |
private static final Object produceConfigurationValue(final InjectionPoint injectionPoint, final Configurations configurations) { | |
Objects.requireNonNull(injectionPoint); | |
Objects.requireNonNull(configurations); | |
final String name = getConfigurationPropertyName(injectionPoint); | |
assert name != null; | |
return configurations.getValue(name, injectionPoint.getType()); // let's say this causes conversion | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment