Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// ConfigurationsExtension is our Extension class within which all this activity is taking place.
final AnnotatedType<ConfigurationsExtension> thisType = beanManager.createAnnotatedType(ConfigurationsExtension.class);
final AnnotatedMethod<? super ConfigurationsExtension> producerMethod = thisType.getMethods().stream()
.filter(m -> m.getJavaMember().getName().equals("produceConfigurationValue"))
final BeanAttributes<?> producerAttributes = beanManager.createBeanAttributes(producerMethod);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment