@Override public Annotation[] getAnnotations() { return annotatedMember.getAnnotations().toArray(new Annotation[] {}); }
@Override public Annotation[] getAnnotations() { return annotatedMember.getAnnotations().toArray(new Annotation[] {}); }
private boolean isProducerWithAnnotation(ProcessProducer<MassProducer, Bar> event, Annotation annotation) { return event.getAnnotatedMember().getAnnotations().contains(annotation); } }
@SuppressWarnings("unchecked") void observeConfigurationProducers(@Observes ProcessProducer<?, Configuration> event, BeanManager beanManager) { final ConfigureCache annotation = event.getAnnotatedMember().getAnnotation(ConfigureCache.class); String configurationName = ""; if (annotation != null) { configurationName = annotation.value(); } configurations.add(new ConfigurationHolder(event.getProducer(), configurationName, Reflections.getQualifiers(beanManager, event.getAnnotatedMember().getAnnotations()))); }
void processProducers(ProcessProducer<?, ?> event, BeanManager beanManager) { final ConfigureCache annotation = event.getAnnotatedMember().getAnnotation(ConfigureCache.class); if (annotation != null) { configurations.add(new ConfigurationHolder( (Producer<Configuration>)event.getProducer(), annotation.value(), getQualifiers(beanManager, event.getAnnotatedMember().getAnnotations()) )); } }
AnnotatedMember<X> annotatedMember = processProducer.getAnnotatedMember(); List<Annotation> qualifiers = new ArrayList<Annotation>(); for (Annotation annotation : annotatedMember.getAnnotations())
protected void defineDisposalMethod() Set<Annotation> producerQualifiers = webBeansContext.getAnnotationManager().getQualifierAnnotations(producer.getAnnotations()); if (producerQualifiers.size() == 1 && producerQualifiers.iterator().next().annotationType().equals(Default.class))