congrats Icon
New! Announcing our next generation AI code completions
Read here
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
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ImageIO (javax.imageio)
  • JLabel (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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