congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
EnhancedAnnotation.getAnnotation
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: weld/core

/**
 * Initializes the bean name defaulted
 */
private void initBeanNameDefaulted(EnhancedAnnotation<T> annotatedAnnotation) {
  if (annotatedAnnotation.isAnnotationPresent(Named.class)) {
    if (!"".equals(annotatedAnnotation.getAnnotation(Named.class).value())) {
      throw MetadataLogger.LOG.valueOnNamedStereotype(annotatedAnnotation);
    }
    beanNameDefaulted = true;
  }
}
origin: weld/core

/**
 * Initializes the bean name defaulted
 */
private void initBeanNameDefaulted(EnhancedAnnotation<T> annotatedAnnotation) {
  if (annotatedAnnotation.isAnnotationPresent(Named.class)) {
    if (!"".equals(annotatedAnnotation.getAnnotation(Named.class).value())) {
      throw MetadataLogger.LOG.valueOnNamedStereotype(annotatedAnnotation);
    }
    beanNameDefaulted = true;
  }
}
origin: org.jboss.weld.se/weld-se-shaded

/**
 * Initializes the bean name defaulted
 */
private void initBeanNameDefaulted(EnhancedAnnotation<T> annotatedAnnotation) {
  if (annotatedAnnotation.isAnnotationPresent(Named.class)) {
    if (!"".equals(annotatedAnnotation.getAnnotation(Named.class).value())) {
      throw MetadataLogger.LOG.valueOnNamedStereotype(annotatedAnnotation);
    }
    beanNameDefaulted = true;
  }
}
origin: org.jboss.weld.se/weld-se

/**
 * Initializes the bean name defaulted
 */
private void initBeanNameDefaulted(EnhancedAnnotation<T> annotatedAnnotation) {
  if (annotatedAnnotation.isAnnotationPresent(Named.class)) {
    if (!"".equals(annotatedAnnotation.getAnnotation(Named.class).value())) {
      throw MetadataLogger.LOG.valueOnNamedStereotype(annotatedAnnotation);
    }
    beanNameDefaulted = true;
  }
}
origin: org.jboss.weld.se/weld-se

private void checkMetaAnnotations(EnhancedAnnotation<T> annotatedAnnotation) {
  ElementType[] elementTypes = getTargetElementTypes(annotatedAnnotation.getAnnotation(Target.class));
  for (Annotation inheritedBinding : getInheritedInterceptionBindingTypes()) {
    ElementType[] metaAnnotationElementTypes = getTargetElementTypes(inheritedBinding.annotationType().getAnnotation(Target.class));
    if (!Arrays2.containsAll(metaAnnotationElementTypes, elementTypes)) {
      ReflectionLogger.LOG.invalidInterceptorBindingTargetDeclaration(inheritedBinding.annotationType().getName(),
          Arrays.toString(metaAnnotationElementTypes), annotatedAnnotation.getJavaClass().getName(), Arrays.toString(elementTypes));
    }
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

private void checkMetaAnnotations(EnhancedAnnotation<T> annotatedAnnotation) {
  ElementType[] elementTypes = getTargetElementTypes(annotatedAnnotation.getAnnotation(Target.class));
  for (Annotation inheritedBinding : getInheritedInterceptionBindingTypes()) {
    ElementType[] metaAnnotationElementTypes = getTargetElementTypes(inheritedBinding.annotationType().getAnnotation(Target.class));
    if (!Arrays2.containsAll(metaAnnotationElementTypes, elementTypes)) {
      ReflectionLogger.LOG.invalidInterceptorBindingTargetDeclaration(inheritedBinding.annotationType().getName(),
          Arrays.toString(metaAnnotationElementTypes), annotatedAnnotation.getJavaClass().getName(), Arrays.toString(elementTypes));
    }
  }
}
origin: weld/core

private void checkMetaAnnotations(EnhancedAnnotation<T> annotatedAnnotation) {
  ElementType[] elementTypes = getTargetElementTypes(annotatedAnnotation.getAnnotation(Target.class));
  for (Annotation inheritedBinding : getInheritedInterceptionBindingTypes()) {
    ElementType[] metaAnnotationElementTypes = getTargetElementTypes(inheritedBinding.annotationType().getAnnotation(Target.class));
    if (!Arrays2.containsAll(metaAnnotationElementTypes, elementTypes)) {
      ReflectionLogger.LOG.invalidInterceptorBindingTargetDeclaration(inheritedBinding.annotationType().getName(),
          Arrays.toString(metaAnnotationElementTypes), annotatedAnnotation.getJavaClass().getName(), Arrays.toString(elementTypes));
    }
  }
}
origin: weld/core

private void checkMetaAnnotations(EnhancedAnnotation<T> annotatedAnnotation) {
  ElementType[] elementTypes = getTargetElementTypes(annotatedAnnotation.getAnnotation(Target.class));
  for (Annotation inheritedBinding : getInheritedInterceptionBindingTypes()) {
    ElementType[] metaAnnotationElementTypes = getTargetElementTypes(inheritedBinding.annotationType().getAnnotation(Target.class));
    if (!Arrays2.containsAll(metaAnnotationElementTypes, elementTypes)) {
      ReflectionLogger.LOG.invalidInterceptorBindingTargetDeclaration(inheritedBinding.annotationType().getName(),
          Arrays.toString(metaAnnotationElementTypes), annotatedAnnotation.getJavaClass().getName(), Arrays.toString(elementTypes));
    }
  }
}
origin: weld/core

private static boolean isValidTargetType(EnhancedAnnotation<?> annotation) {
  Target target = annotation.getAnnotation(Target.class);
  return target != null
      && (Arrays2.unorderedEquals(target.value(), ElementType.TYPE, ElementType.METHOD) || Arrays2.unorderedEquals(target.value(), ElementType.TYPE));
}
origin: org.jboss.weld.se/weld-se

private static boolean isValidTargetType(EnhancedAnnotation<?> annotation) {
  Target target = annotation.getAnnotation(Target.class);
  return target != null
      && (Arrays2.unorderedEquals(target.value(), ElementType.TYPE, ElementType.METHOD) || Arrays2.unorderedEquals(target.value(), ElementType.TYPE));
}
origin: weld/core

private static boolean isValidTargetType(EnhancedAnnotation<?> annotation) {
  Target target = annotation.getAnnotation(Target.class);
  return target != null
      && (Arrays2.unorderedEquals(target.value(), ElementType.TYPE, ElementType.METHOD) || Arrays2.unorderedEquals(target.value(), ElementType.TYPE));
}
origin: weld/core

private static boolean isValidTargetType(EnhancedAnnotation<?> annotation) {
  Target target = annotation.getAnnotation(Target.class);
  return target != null
      && (Arrays2.unorderedEquals(target.value(), ElementType.TYPE, ElementType.METHOD) || Arrays2.unorderedEquals(target.value(), ElementType.TYPE));
}
origin: org.jboss.weld.se/weld-se-shaded

private static boolean isValidTargetType(EnhancedAnnotation<?> annotation) {
  Target target = annotation.getAnnotation(Target.class);
  return target != null
      && (Arrays2.unorderedEquals(target.value(), ElementType.TYPE, ElementType.METHOD) || Arrays2.unorderedEquals(target.value(), ElementType.TYPE));
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

private static boolean isValidTargetType(EnhancedAnnotation<?> annotation) {
  Target target = annotation.getAnnotation(Target.class);
  return target != null
      && (Arrays2.unorderedEquals(target.value(), ElementType.TYPE, ElementType.METHOD) || Arrays2.unorderedEquals(target.value(), ElementType.TYPE));
}
origin: org.jboss.weld.se/weld-se

protected void check(EnhancedAnnotation<T> annotatedAnnotation) {
  if (valid && (!annotatedAnnotation.isAnnotationPresent(Retention.class) || annotatedAnnotation.isAnnotationPresent(Retention.class) && !annotatedAnnotation.getAnnotation(Retention.class).value().equals(RetentionPolicy.RUNTIME))) {
    this.valid = false;
    ReflectionLogger.LOG.missingRetention(annotatedAnnotation);
  }
}
origin: weld/core

protected void check(EnhancedAnnotation<T> annotatedAnnotation) {
  if (valid && (!annotatedAnnotation.isAnnotationPresent(Retention.class) || annotatedAnnotation.isAnnotationPresent(Retention.class) && !annotatedAnnotation.getAnnotation(Retention.class).value().equals(RetentionPolicy.RUNTIME))) {
    this.valid = false;
    ReflectionLogger.LOG.missingRetention(annotatedAnnotation);
  }
}
origin: weld/core

protected void check(EnhancedAnnotation<T> annotatedAnnotation) {
  if (valid && (!annotatedAnnotation.isAnnotationPresent(Retention.class) || annotatedAnnotation.isAnnotationPresent(Retention.class) && !annotatedAnnotation.getAnnotation(Retention.class).value().equals(RetentionPolicy.RUNTIME))) {
    this.valid = false;
    ReflectionLogger.LOG.missingRetention(annotatedAnnotation);
  }
}
origin: org.jboss.weld.se/weld-se

@Override
protected void check(EnhancedAnnotation<T> annotatedAnnotation) {
  super.check(annotatedAnnotation);
  if (isValid()) {
    if (!annotatedAnnotation.isAnnotationPresent(Target.class)) {
      ReflectionLogger.LOG.missingTarget(annotatedAnnotation);
    } else if (!Arrays2.unorderedEquals(annotatedAnnotation.getAnnotation(Target.class).value(), METHOD, FIELD, TYPE)) {
      ReflectionLogger.LOG.missingTargetMethodFieldType(annotatedAnnotation);
    }
  }
}
origin: weld/core

@Override
protected void check(EnhancedAnnotation<T> annotatedAnnotation) {
  super.check(annotatedAnnotation);
  if (isValid()) {
    if (!annotatedAnnotation.isAnnotationPresent(Target.class)) {
      ReflectionLogger.LOG.missingTarget(annotatedAnnotation);
    } else if (!Arrays2.unorderedEquals(annotatedAnnotation.getAnnotation(Target.class).value(), METHOD, FIELD, TYPE)) {
      ReflectionLogger.LOG.missingTargetMethodFieldType(annotatedAnnotation);
    }
  }
}
origin: weld/core

@Override
protected void check(EnhancedAnnotation<T> annotatedAnnotation) {
  super.check(annotatedAnnotation);
  if (isValid()) {
    if (!annotatedAnnotation.isAnnotationPresent(Target.class)) {
      ReflectionLogger.LOG.missingTarget(annotatedAnnotation);
    } else if (!Arrays2.unorderedEquals(annotatedAnnotation.getAnnotation(Target.class).value(), METHOD, FIELD, TYPE)) {
      ReflectionLogger.LOG.missingTargetMethodFieldType(annotatedAnnotation);
    }
  }
}
org.jboss.weld.annotated.enhancedEnhancedAnnotationgetAnnotation

Popular methods of EnhancedAnnotation

  • getAnnotations
  • getJavaClass
  • getMembers
    Gets all the members annotated with annotationType
  • getMetaAnnotations
  • isAnnotationPresent
  • slim

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top 15 Vim 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