Created
February 14, 2018 21:37
-
-
Save ljnelson/9ba3e3b5d2af7a5c66b467e96fd7b6a6 to your computer and use it in GitHub Desktop.
Process a potential event selector bean.
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 processPotentialEventSelectorBean(final Bean<?> bean, final BeanManager beanManager) { | |
if (bean != null) { | |
final Type operationType = getOperationType(bean); | |
if (operationType != null) { | |
final Set kubernetesEventSelectors = Annotations.retainAnnotationsQualifiedWith(bean.getQualifiers(), KubernetesEventSelector.class, beanManager); | |
if (kubernetesEventSelectors != null && !kubernetesEventSelectors.isEmpty()) { | |
this.eventSelectorBeans.put(kubernetesEventSelectors, bean); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment