congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EnhancedAnnotatedParameter.getAnnotation
Code IndexAdd Tabnine to your IDE (free)

How to use
getAnnotation
method
in
org.jboss.weld.annotated.enhanced.EnhancedAnnotatedParameter

Best Java code snippets using org.jboss.weld.annotated.enhanced.EnhancedAnnotatedParameter.getAnnotation (Showing top 18 results out of 315)

origin: org.jboss.weld.servlet/weld-servlet-shaded

/**
 * Tests an observer method to see if it is transactional.
 *
 * @param observer The observer method
 * @return true if the observer method is annotated as transactional
 */
public static TransactionPhase getTransactionalPhase(EnhancedAnnotatedMethod<?, ?> observer) {
  EnhancedAnnotatedParameter<?, ?> parameter = observer.getEnhancedParameters(Observes.class).iterator().next();
  return parameter.getAnnotation(Observes.class).during();
}
origin: weld/core

/**
 * Tests an observer method to see if it is transactional.
 *
 * @param observer The observer method
 * @return true if the observer method is annotated as transactional
 */
public static TransactionPhase getTransactionalPhase(EnhancedAnnotatedMethod<?, ?> observer) {
  EnhancedAnnotatedParameter<?, ?> parameter = observer.getEnhancedParameters(Observes.class).iterator().next();
  return parameter.getAnnotation(Observes.class).during();
}
origin: org.jboss.weld.se/weld-se

  /**
   * Tests an observer method to see if it is transactional.
   *
   * @param observer The observer method
   * @return true if the observer method is annotated as transactional
   */
  public static TransactionPhase getTransactionalPhase(EnhancedAnnotatedMethod<?, ?> observer) {
    EnhancedAnnotatedParameter<?, ?> parameter = observer.getEnhancedParameters(Observes.class).iterator().next();
    return parameter.getAnnotation(Observes.class).during();
  }
}
origin: weld/core

/**
 * Tests an observer method to see if it is transactional.
 *
 * @param observer The observer method
 * @return true if the observer method is annotated as transactional
 */
public static TransactionPhase getTransactionalPhase(EnhancedAnnotatedMethod<?, ?> observer) {
  EnhancedAnnotatedParameter<?, ?> parameter = observer.getEnhancedParameters(Observes.class).iterator().next();
  return parameter.getAnnotation(Observes.class).during();
}
origin: weld/core

/**
 * Tests an observer method to see if it is transactional.
 *
 * @param observer The observer method
 * @return true if the observer method is annotated as transactional
 */
public static TransactionPhase getTransactionalPhase(EnhancedAnnotatedMethod<?, ?> observer) {
  EnhancedAnnotatedParameter<?, ?> parameter = observer.getEnhancedParameters(Observes.class).iterator().next();
  return parameter.getAnnotation(Observes.class).during();
}
origin: org.jboss.weld.se/weld-se-shaded

/**
 * Tests an observer method to see if it is transactional.
 *
 * @param observer The observer method
 * @return true if the observer method is annotated as transactional
 */
public static TransactionPhase getTransactionalPhase(EnhancedAnnotatedMethod<?, ?> observer) {
  EnhancedAnnotatedParameter<?, ?> parameter = observer.getEnhancedParameters(Observes.class).iterator().next();
  return parameter.getAnnotation(Observes.class).during();
}
origin: org.jboss.weld.se/weld-se

protected Set<Class<? extends Annotation>> initRequiredTypeAnnotations(EnhancedAnnotatedMethod<T, ? super X> observer) {
  EnhancedAnnotatedParameter<?, ? super X> eventParameter = observer.getEnhancedParameters(Observes.class).get(0);
  WithAnnotations annotation = eventParameter.getAnnotation(WithAnnotations.class);
  if (annotation != null) {
    return ImmutableSet.of(annotation.value());
  }
  return Collections.emptySet();
}
origin: weld/core

protected Set<Class<? extends Annotation>> initRequiredTypeAnnotations(EnhancedAnnotatedMethod<T, ? super X> observer) {
  EnhancedAnnotatedParameter<?, ? super X> eventParameter = getEventParameter(observer);
  WithAnnotations annotation = eventParameter.getAnnotation(WithAnnotations.class);
  if (annotation != null) {
    return ImmutableSet.<Class<? extends Annotation>>of(annotation.value());
  }
  return Collections.emptySet();
}
origin: weld/core

protected Set<Class<? extends Annotation>> initRequiredTypeAnnotations(EnhancedAnnotatedMethod<T, ? super X> observer) {
  EnhancedAnnotatedParameter<?, ? super X> eventParameter = getEventParameter(observer);
  WithAnnotations annotation = eventParameter.getAnnotation(WithAnnotations.class);
  if (annotation != null) {
    return ImmutableSet.<Class<? extends Annotation>>of(annotation.value());
  }
  return Collections.emptySet();
}
origin: weld/core

protected Set<Class<? extends Annotation>> initRequiredTypeAnnotations(EnhancedAnnotatedMethod<T, ? super X> observer) {
  EnhancedAnnotatedParameter<?, ? super X> eventParameter = getEventParameter(observer);
  WithAnnotations annotation = eventParameter.getAnnotation(WithAnnotations.class);
  if (annotation != null) {
    return ImmutableSet.<Class<? extends Annotation>>of(annotation.value());
  }
  return Collections.emptySet();
}
origin: org.jboss.weld.se/weld-se-shaded

protected Set<Class<? extends Annotation>> initRequiredTypeAnnotations(EnhancedAnnotatedMethod<T, ? super X> observer) {
  EnhancedAnnotatedParameter<?, ? super X> eventParameter = getEventParameter(observer);
  WithAnnotations annotation = eventParameter.getAnnotation(WithAnnotations.class);
  if (annotation != null) {
    return ImmutableSet.<Class<? extends Annotation>>of(annotation.value());
  }
  return Collections.emptySet();
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

protected Set<Class<? extends Annotation>> initRequiredTypeAnnotations(EnhancedAnnotatedMethod<T, ? super X> observer) {
  EnhancedAnnotatedParameter<?, ? super X> eventParameter = getEventParameter(observer);
  WithAnnotations annotation = eventParameter.getAnnotation(WithAnnotations.class);
  if (annotation != null) {
    return ImmutableSet.<Class<? extends Annotation>>of(annotation.value());
  }
  return Collections.emptySet();
}
origin: weld/core

  this.reception = eventParameter.getAnnotation(ObservesAsync.class).notifyObserver();
  this.reception = eventParameter.getAnnotation(Observes.class).notifyObserver();
  this.transactionPhase = ObserverFactory.getTransactionalPhase(observer);
Priority priority = eventParameter.getAnnotation(Priority.class);
if (priority == null) {
  this.priority = DEFAULT_PRIORITY;
origin: weld/core

  this.reception = eventParameter.getAnnotation(ObservesAsync.class).notifyObserver();
  this.reception = eventParameter.getAnnotation(Observes.class).notifyObserver();
  this.transactionPhase = ObserverFactory.getTransactionalPhase(observer);
Priority priority = eventParameter.getAnnotation(Priority.class);
if (priority == null) {
  this.priority = DEFAULT_PRIORITY;
origin: weld/core

  this.reception = eventParameter.getAnnotation(ObservesAsync.class).notifyObserver();
  this.reception = eventParameter.getAnnotation(Observes.class).notifyObserver();
  this.transactionPhase = ObserverFactory.getTransactionalPhase(observer);
Priority priority = eventParameter.getAnnotation(Priority.class);
if (priority == null) {
  this.priority = DEFAULT_PRIORITY;
origin: org.jboss.weld.servlet/weld-servlet-shaded

  this.reception = eventParameter.getAnnotation(ObservesAsync.class).notifyObserver();
  this.reception = eventParameter.getAnnotation(Observes.class).notifyObserver();
  this.transactionPhase = ObserverFactory.getTransactionalPhase(observer);
Priority priority = eventParameter.getAnnotation(Priority.class);
if (priority == null) {
  this.priority = DEFAULT_PRIORITY;
origin: org.jboss.weld.se/weld-se-shaded

  this.reception = eventParameter.getAnnotation(ObservesAsync.class).notifyObserver();
  this.reception = eventParameter.getAnnotation(Observes.class).notifyObserver();
  this.transactionPhase = ObserverFactory.getTransactionalPhase(observer);
Priority priority = eventParameter.getAnnotation(Priority.class);
if (priority == null) {
  this.priority = DEFAULT_PRIORITY;
origin: org.jboss.weld.se/weld-se

this.bindings = manager.getServices().get(SharedObjectCache.class)
    .getSharedSet(observer.getEnhancedParameters(Observes.class).get(0).getMetaAnnotations(Qualifier.class));
Observes observesAnnotation = observer.getEnhancedParameters(Observes.class).get(0).getAnnotation(Observes.class);
this.reception = observesAnnotation.notifyObserver();
transactionPhase = ObserverFactory.getTransactionalPhase(observer);
org.jboss.weld.annotated.enhancedEnhancedAnnotatedParametergetAnnotation

Popular methods of EnhancedAnnotatedParameter

  • getActualTypeArguments
  • getBaseType
  • getDeclaringEnhancedCallable
  • getJavaClass
  • getMetaAnnotations
  • getPosition
  • getQualifiers
  • isAnnotationPresent
  • slim
    Returns a lightweight implementation of AnnotatedParameter with minimal memory footprint.
  • getDeclaringCallable
  • getDeclaringType
  • getDeclaringType

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now