use of org.jboss.weld.event.ObserverNotifier in project core by weld.
the class ProbeObserver method resolveObservers.
private List<ObserverMethod<?>> resolveObservers(EventMetadata metadata, boolean containerEvent) {
List<ObserverMethod<?>> observers = new ArrayList<ObserverMethod<?>>();
final ObserverNotifier notifier = (containerEvent) ? manager.getAccessibleLenientObserverNotifier() : manager.getGlobalLenientObserverNotifier();
ResolvedObservers<?> resolvedObservers = notifier.resolveObserverMethods(metadata.getType(), metadata.getQualifiers());
for (ObserverMethod<?> observer : resolvedObservers.getAllObservers()) {
// do not show ProbeObserver
if (getBeanClass() != observer.getBeanClass()) {
observers.add(observer);
}
}
return ImmutableList.copyOf(observers);
}
Aggregations