Tabnine Logo
BeanManagerLogger.duplicateInterceptorBinding
Code IndexAdd Tabnine to your IDE (free)

How to use
duplicateInterceptorBinding
method
in
org.jboss.weld.logging.BeanManagerLogger

Best Java code snippets using org.jboss.weld.logging.BeanManagerLogger.duplicateInterceptorBinding (Showing top 12 results out of 315)

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

private static void addInterceptorBindings(EnhancedAnnotatedType<?> clazz, Collection<Annotation> interceptorBindings, Set<Annotation> flattenInterceptorBindings,
    MetaAnnotationStore metaAnnotationStore) {
  for (Annotation annotation : interceptorBindings) {
    Class<? extends Annotation> annotationType = annotation.annotationType();
    if (!annotation.annotationType().isAnnotationPresent(Repeatable.class)) {
      for (Annotation binding : flattenInterceptorBindings) {
        if (binding.annotationType().equals(annotationType)
            && !metaAnnotationStore.getInterceptorBindingModel(annotationType).isEqual(annotation, binding, false)) {
          if (clazz != null) {
            throw new DefinitionException(BeanLogger.LOG.conflictingInterceptorBindings(clazz));
          } else {
            throw BeanManagerLogger.LOG.duplicateInterceptorBinding(annotation);
          }
        }
      }
    }
    flattenInterceptorBindings.add(annotation);
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

private static void addInterceptorBindings(EnhancedAnnotatedType<?> clazz, Collection<Annotation> interceptorBindings, Set<Annotation> flattenInterceptorBindings,
    MetaAnnotationStore metaAnnotationStore) {
  for (Annotation annotation : interceptorBindings) {
    Class<? extends Annotation> annotationType = annotation.annotationType();
    if (!annotation.annotationType().isAnnotationPresent(Repeatable.class)) {
      for (Annotation binding : flattenInterceptorBindings) {
        if (binding.annotationType().equals(annotationType)
            && !metaAnnotationStore.getInterceptorBindingModel(annotationType).isEqual(annotation, binding, false)) {
          if (clazz != null) {
            throw new DefinitionException(BeanLogger.LOG.conflictingInterceptorBindings(clazz));
          } else {
            throw BeanManagerLogger.LOG.duplicateInterceptorBinding(annotation);
          }
        }
      }
    }
    flattenInterceptorBindings.add(annotation);
  }
}
origin: weld/core

private static void addInterceptorBindings(EnhancedAnnotatedType<?> clazz, Collection<Annotation> interceptorBindings, Set<Annotation> flattenInterceptorBindings,
    MetaAnnotationStore metaAnnotationStore) {
  for (Annotation annotation : interceptorBindings) {
    Class<? extends Annotation> annotationType = annotation.annotationType();
    if (!annotation.annotationType().isAnnotationPresent(Repeatable.class)) {
      for (Annotation binding : flattenInterceptorBindings) {
        if (binding.annotationType().equals(annotationType)
            && !metaAnnotationStore.getInterceptorBindingModel(annotationType).isEqual(annotation, binding, false)) {
          if (clazz != null) {
            throw new DefinitionException(BeanLogger.LOG.conflictingInterceptorBindings(clazz));
          } else {
            throw BeanManagerLogger.LOG.duplicateInterceptorBinding(annotation);
          }
        }
      }
    }
    flattenInterceptorBindings.add(annotation);
  }
}
origin: weld/core

private static void addInterceptorBindings(EnhancedAnnotatedType<?> clazz, Collection<Annotation> interceptorBindings, Set<Annotation> flattenInterceptorBindings,
    MetaAnnotationStore metaAnnotationStore) {
  for (Annotation annotation : interceptorBindings) {
    Class<? extends Annotation> annotationType = annotation.annotationType();
    if (!annotation.annotationType().isAnnotationPresent(Repeatable.class)) {
      for (Annotation binding : flattenInterceptorBindings) {
        if (binding.annotationType().equals(annotationType)
            && !metaAnnotationStore.getInterceptorBindingModel(annotationType).isEqual(annotation, binding, false)) {
          if (clazz != null) {
            throw new DefinitionException(BeanLogger.LOG.conflictingInterceptorBindings(clazz));
          } else {
            throw BeanManagerLogger.LOG.duplicateInterceptorBinding(annotation);
          }
        }
      }
    }
    flattenInterceptorBindings.add(annotation);
  }
}
origin: weld/core

private static void addInterceptorBindings(EnhancedAnnotatedType<?> clazz, Collection<Annotation> interceptorBindings, Set<Annotation> flattenInterceptorBindings,
    MetaAnnotationStore metaAnnotationStore) {
  for (Annotation annotation : interceptorBindings) {
    Class<? extends Annotation> annotationType = annotation.annotationType();
    if (!annotation.annotationType().isAnnotationPresent(Repeatable.class)) {
      for (Annotation binding : flattenInterceptorBindings) {
        if (binding.annotationType().equals(annotationType)
            && !metaAnnotationStore.getInterceptorBindingModel(annotationType).isEqual(annotation, binding, false)) {
          if (clazz != null) {
            throw new DefinitionException(BeanLogger.LOG.conflictingInterceptorBindings(clazz));
          } else {
            throw BeanManagerLogger.LOG.duplicateInterceptorBinding(annotation);
          }
        }
      }
    }
    flattenInterceptorBindings.add(annotation);
  }
}
origin: org.jboss.weld.se/weld-se

@Override
protected void checkQualifier(Annotation qualifier, QualifierInstance qualifierInstance, Class<? extends  Annotation> annotationType) {
  if (!getMetaAnnotationStore().getInterceptorBindingModel(annotationType).isValid()) {
    throw BeanManagerLogger.LOG.interceptorResolutionWithNonbindingType(qualifier);
  }
  if (annotationTypes.contains(annotationType)) {
    throw BeanManagerLogger.LOG.duplicateInterceptorBinding(qualifier);
  }
}
origin: weld/core

@Override
protected void checkQualifier(Annotation qualifier,final QualifierInstance qualifierInstance, Class<? extends  Annotation> annotationType) {
  if (!getMetaAnnotationStore().getInterceptorBindingModel(annotationType).isValid()) {
    throw BeanManagerLogger.LOG.interceptorResolutionWithNonbindingType(qualifier);
  }
  if (qualifierInstances.contains(qualifierInstance)) {
    throw BeanManagerLogger.LOG.duplicateInterceptorBinding(qualifierInstance);
  }
}
origin: weld/core

@Override
protected void checkQualifier(Annotation qualifier,final QualifierInstance qualifierInstance, Class<? extends  Annotation> annotationType) {
  if (!getMetaAnnotationStore().getInterceptorBindingModel(annotationType).isValid()) {
    throw BeanManagerLogger.LOG.interceptorResolutionWithNonbindingType(qualifier);
  }
  if (qualifierInstances.contains(qualifierInstance)) {
    throw BeanManagerLogger.LOG.duplicateInterceptorBinding(qualifierInstance);
  }
}
origin: org.jboss.weld.se/weld-se-shaded

@Override
protected void checkQualifier(Annotation qualifier,final QualifierInstance qualifierInstance, Class<? extends  Annotation> annotationType) {
  if (!getMetaAnnotationStore().getInterceptorBindingModel(annotationType).isValid()) {
    throw BeanManagerLogger.LOG.interceptorResolutionWithNonbindingType(qualifier);
  }
  if (qualifierInstances.contains(qualifierInstance)) {
    throw BeanManagerLogger.LOG.duplicateInterceptorBinding(qualifierInstance);
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
protected void checkQualifier(Annotation qualifier,final QualifierInstance qualifierInstance, Class<? extends  Annotation> annotationType) {
  if (!getMetaAnnotationStore().getInterceptorBindingModel(annotationType).isValid()) {
    throw BeanManagerLogger.LOG.interceptorResolutionWithNonbindingType(qualifier);
  }
  if (qualifierInstances.contains(qualifierInstance)) {
    throw BeanManagerLogger.LOG.duplicateInterceptorBinding(qualifierInstance);
  }
}
origin: weld/core

@Override
protected void checkQualifier(Annotation qualifier,final QualifierInstance qualifierInstance, Class<? extends  Annotation> annotationType) {
  if (!getMetaAnnotationStore().getInterceptorBindingModel(annotationType).isValid()) {
    throw BeanManagerLogger.LOG.interceptorResolutionWithNonbindingType(qualifier);
  }
  if (qualifierInstances.contains(qualifierInstance)) {
    throw BeanManagerLogger.LOG.duplicateInterceptorBinding(qualifierInstance);
  }
}
origin: org.jboss.weld.se/weld-se

/**
 * Extracts a flat set of interception bindings from a given set of interceptor bindings.
 *
 * @param addTopLevelInterceptorBindings add top level interceptor bindings to the result set.
 * @param addInheritedInterceptorBindings add inherited level interceptor bindings to the result set.
 * @return
 */
public static Set<Annotation> flattenInterceptorBindings(BeanManagerImpl beanManager, Collection<Annotation> annotations, boolean addTopLevelInterceptorBindings,
    boolean addInheritedInterceptorBindings) {
  Set<Annotation> flattenInterceptorBindings = new InterceptorBindingSet(beanManager);
  if (addTopLevelInterceptorBindings) {
    for (Annotation annotation : annotations) {
      boolean added = flattenInterceptorBindings.add(annotation);
      if (!added) {
        throw BeanManagerLogger.LOG.duplicateInterceptorBinding(annotations);
      }
    }
  }
  if (addInheritedInterceptorBindings) {
    for (Annotation annotation : annotations) {
      addInheritedInterceptorBindings(annotation.annotationType(), beanManager.getServices().get(MetaAnnotationStore.class), flattenInterceptorBindings);
    }
  }
  return flattenInterceptorBindings;
}
org.jboss.weld.loggingBeanManagerLoggerduplicateInterceptorBinding

Popular methods of BeanManagerLogger

  • beanManagerNotAvailable
  • injectionPointHasAmbiguousDependencies
  • injectionPointHasUnsatisfiedDependencies
  • ambiguousBeanManager
  • ambiguousBeansForDependency
  • cannotCreateBeanAttributesForIncorrectAnnotatedMember
  • cannotLocateBeanManager
  • contextNotActive
  • duplicateActiveContexts
  • duplicateQualifiers
  • interceptorBindingsEmpty
  • interceptorResolutionWithNonbindingType
  • interceptorBindingsEmpty,
  • interceptorResolutionWithNonbindingType,
  • invalidQualifier,
  • methodNotAvailableAfterShutdown,
  • methodNotAvailableDuringInitialization,
  • noDecoratorTypes,
  • noInstanceOfExtension,
  • notInterceptorBindingType,
  • notStereotype

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top Sublime Text plugins
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