congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Multimap.put
Code IndexAdd Tabnine to your IDE (free)

How to use
put
method
in
org.jboss.weld.util.collections.Multimap

Best Java code snippets using org.jboss.weld.util.collections.Multimap.put (Showing top 20 results out of 315)

origin: wildfly/wildfly

public Components(DeploymentUnit deploymentUnit, Map<ResourceRoot, Index> indexes) {
  componentDescriptionProcessors = ServiceLoader.load(ComponentDescriptionProcessor.class,
      WildFlySecurityManager.getClassLoaderPrivileged(BeanArchiveProcessor.class));
  for (ComponentDescription component : deploymentUnit.getAttachment(org.jboss.as.ee.component.Attachments.EE_MODULE_DESCRIPTION).getComponentDescriptions()) {
    ResourceRoot resourceRoot = null;
    DotName componentClassName = DotName.createSimple(component.getComponentClassName());
    for (Entry<ResourceRoot, Index> entry : indexes.entrySet()) {
      final Index index = entry.getValue();
      if (index != null) {
        if (index.getClassByName(componentClassName) != null) {
          resourceRoot = entry.getKey();
          break;
        }
      }
    }
    if (resourceRoot == null) {
      implicitComponentDescriptions.add(component);
    }
    if (resourceRoot == null || isClassesRoot(resourceRoot)) {
      // special handling
      resourceRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);
    }
    componentDescriptions.put(resourceRoot, component);
    // Process component descriptions
    for (ComponentDescriptionProcessor processor : componentDescriptionProcessors) {
      processor.processComponentDescription(resourceRoot, component);
    }
  }
}
origin: org.jboss.eap/wildfly-weld-ejb

@Override
public void processComponentDescription(ResourceRoot resourceRoot, ComponentDescription component) {
  if (component instanceof EJBComponentDescription) {
    ejbComponentDescriptions.put(resourceRoot, (EJBComponentDescription) component);
  }
}
origin: weld/core

protected Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> buildAnnotatedParameterMethodMultimap(Set<EnhancedAnnotatedMethod<?, ? super T>> effectiveMethods) {
  Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> result = SetMultimap.newSetMultimap();
  for (EnhancedAnnotatedMethod<?, ? super T> method : effectiveMethods) {
    for (Class<? extends Annotation> annotation : MAPPED_METHOD_PARAMETER_ANNOTATIONS) {
      if (!method.getEnhancedParameters(annotation).isEmpty()) {
        result.put(annotation, method);
      }
    }
  }
  return Multimaps.unmodifiableMultimap(result);
}
origin: org.jboss.weld.se/weld-se

protected Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> buildAnnotatedParameterMethodMultimap(Set<EnhancedAnnotatedMethod<?, ? super T>> effectiveMethods) {
  Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> result = SetMultimap.newSetMultimap();
  for (EnhancedAnnotatedMethod<?, ? super T> method : effectiveMethods) {
    for (Class<? extends Annotation> annotation : MAPPED_METHOD_PARAMETER_ANNOTATIONS) {
      if (!method.getEnhancedParameters(annotation).isEmpty()) {
        result.put(annotation, method);
      }
    }
  }
  return Multimaps.unmodifiableMultimap(result);
}
origin: weld/core

protected Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> buildAnnotatedParameterMethodMultimap(Set<EnhancedAnnotatedMethod<?, ? super T>> effectiveMethods) {
  Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> result = SetMultimap.newSetMultimap();
  for (EnhancedAnnotatedMethod<?, ? super T> method : effectiveMethods) {
    for (Class<? extends Annotation> annotation : MAPPED_METHOD_PARAMETER_ANNOTATIONS) {
      if (!method.getEnhancedParameters(annotation).isEmpty()) {
        result.put(annotation, method);
      }
    }
  }
  return Multimaps.unmodifiableMultimap(result);
}
origin: weld/core

protected Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> buildAnnotatedParameterMethodMultimap(Set<EnhancedAnnotatedMethod<?, ? super T>> effectiveMethods) {
  Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> result = SetMultimap.newSetMultimap();
  for (EnhancedAnnotatedMethod<?, ? super T> method : effectiveMethods) {
    for (Class<? extends Annotation> annotation : MAPPED_METHOD_PARAMETER_ANNOTATIONS) {
      if (!method.getEnhancedParameters(annotation).isEmpty()) {
        result.put(annotation, method);
      }
    }
  }
  return Multimaps.unmodifiableMultimap(result);
}
origin: org.jboss.weld.se/weld-se-shaded

protected Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> buildAnnotatedParameterMethodMultimap(Set<EnhancedAnnotatedMethod<?, ? super T>> effectiveMethods) {
  Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> result = SetMultimap.newSetMultimap();
  for (EnhancedAnnotatedMethod<?, ? super T> method : effectiveMethods) {
    for (Class<? extends Annotation> annotation : MAPPED_METHOD_PARAMETER_ANNOTATIONS) {
      if (!method.getEnhancedParameters(annotation).isEmpty()) {
        result.put(annotation, method);
      }
    }
  }
  return Multimaps.unmodifiableMultimap(result);
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

protected Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> buildAnnotatedParameterMethodMultimap(Set<EnhancedAnnotatedMethod<?, ? super T>> effectiveMethods) {
  Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> result = SetMultimap.newSetMultimap();
  for (EnhancedAnnotatedMethod<?, ? super T> method : effectiveMethods) {
    for (Class<? extends Annotation> annotation : MAPPED_METHOD_PARAMETER_ANNOTATIONS) {
      if (!method.getEnhancedParameters(annotation).isEmpty()) {
        result.put(annotation, method);
      }
    }
  }
  return Multimaps.unmodifiableMultimap(result);
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

protected Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> buildAnnotatedMethodMultimap(Set<EnhancedAnnotatedMethod<?, ? super T>> effectiveMethods) {
  Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> result = SetMultimap.newSetMultimap();
  for (EnhancedAnnotatedMethod<?, ? super T> method : effectiveMethods) {
    for (Class<? extends Annotation> annotation : MAPPED_METHOD_ANNOTATIONS) {
      if (method.isAnnotationPresent(annotation)) {
        result.put(annotation, method);
      }
    }
  }
  return Multimaps.unmodifiableMultimap(result);
}
origin: org.jboss.weld.se/weld-se

protected Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> buildAnnotatedMethodMultimap(Set<EnhancedAnnotatedMethod<?, ? super T>> effectiveMethods) {
  Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> result = SetMultimap.newSetMultimap();
  for (EnhancedAnnotatedMethod<?, ? super T> method : effectiveMethods) {
    for (Class<? extends Annotation> annotation : MAPPED_METHOD_ANNOTATIONS) {
      if (method.isAnnotationPresent(annotation)) {
        result.put(annotation, method);
      }
    }
  }
  return Multimaps.unmodifiableMultimap(result);
}
origin: weld/core

protected Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> buildAnnotatedMethodMultimap(Set<EnhancedAnnotatedMethod<?, ? super T>> effectiveMethods) {
  Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> result = SetMultimap.newSetMultimap();
  for (EnhancedAnnotatedMethod<?, ? super T> method : effectiveMethods) {
    for (Class<? extends Annotation> annotation : MAPPED_METHOD_ANNOTATIONS) {
      if (method.isAnnotationPresent(annotation)) {
        result.put(annotation, method);
      }
    }
  }
  return Multimaps.unmodifiableMultimap(result);
}
origin: weld/core

protected Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> buildAnnotatedMethodMultimap(Set<EnhancedAnnotatedMethod<?, ? super T>> effectiveMethods) {
  Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> result = SetMultimap.newSetMultimap();
  for (EnhancedAnnotatedMethod<?, ? super T> method : effectiveMethods) {
    for (Class<? extends Annotation> annotation : MAPPED_METHOD_ANNOTATIONS) {
      if (method.isAnnotationPresent(annotation)) {
        result.put(annotation, method);
      }
    }
  }
  return Multimaps.unmodifiableMultimap(result);
}
origin: weld/core

protected Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> buildAnnotatedMethodMultimap(Set<EnhancedAnnotatedMethod<?, ? super T>> effectiveMethods) {
  Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> result = SetMultimap.newSetMultimap();
  for (EnhancedAnnotatedMethod<?, ? super T> method : effectiveMethods) {
    for (Class<? extends Annotation> annotation : MAPPED_METHOD_ANNOTATIONS) {
      if (method.isAnnotationPresent(annotation)) {
        result.put(annotation, method);
      }
    }
  }
  return Multimaps.unmodifiableMultimap(result);
}
origin: org.jboss.weld.se/weld-se-shaded

protected Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> buildAnnotatedMethodMultimap(Set<EnhancedAnnotatedMethod<?, ? super T>> effectiveMethods) {
  Multimap<Class<? extends Annotation>, EnhancedAnnotatedMethod<?, ? super T>> result = SetMultimap.newSetMultimap();
  for (EnhancedAnnotatedMethod<?, ? super T> method : effectiveMethods) {
    for (Class<? extends Annotation> annotation : MAPPED_METHOD_ANNOTATIONS) {
      if (method.isAnnotationPresent(annotation)) {
        result.put(annotation, method);
      }
    }
  }
  return Multimaps.unmodifiableMultimap(result);
}
origin: weld/core

/**
 * Merges bean interceptor bindings (including inherited ones) with method interceptor bindings. Method interceptor bindings
 * override bean interceptor bindings. The bean binding map is not modified - a copy is used.
 */
protected Multimap<Class<? extends Annotation>, Annotation> mergeMemberInterceptorBindings(Multimap<Class<? extends Annotation>, Annotation> beanBindings,
    Set<Annotation> methodBindingAnnotations) {
  Multimap<Class<? extends Annotation>, Annotation> mergedBeanBindings = SetMultimap.newSetMultimap(beanBindings);
  Multimap<Class<? extends Annotation>, Annotation> methodBindings = SetMultimap.newSetMultimap();
  for (Annotation methodBinding : methodBindingAnnotations) {
    methodBindings.put(methodBinding.annotationType(), methodBinding);
  }
  for (Class<? extends Annotation> key : methodBindings.keySet()) {
    mergedBeanBindings.replaceValues(key, methodBindings.get(key));
  }
  return mergedBeanBindings;
}
origin: weld/core

/**
 * Merges bean interceptor bindings (including inherited ones) with method interceptor bindings. Method interceptor bindings
 * override bean interceptor bindings. The bean binding map is not modified - a copy is used.
 */
protected Multimap<Class<? extends Annotation>, Annotation> mergeMemberInterceptorBindings(Multimap<Class<? extends Annotation>, Annotation> beanBindings,
    Set<Annotation> methodBindingAnnotations) {
  Multimap<Class<? extends Annotation>, Annotation> mergedBeanBindings = SetMultimap.newSetMultimap(beanBindings);
  Multimap<Class<? extends Annotation>, Annotation> methodBindings = SetMultimap.newSetMultimap();
  for (Annotation methodBinding : methodBindingAnnotations) {
    methodBindings.put(methodBinding.annotationType(), methodBinding);
  }
  for (Class<? extends Annotation> key : methodBindings.keySet()) {
    mergedBeanBindings.replaceValues(key, methodBindings.get(key));
  }
  return mergedBeanBindings;
}
origin: weld/core

/**
 * Merges bean interceptor bindings (including inherited ones) with method interceptor bindings. Method interceptor bindings
 * override bean interceptor bindings. The bean binding map is not modified - a copy is used.
 */
protected Multimap<Class<? extends Annotation>, Annotation> mergeMemberInterceptorBindings(Multimap<Class<? extends Annotation>, Annotation> beanBindings,
    Set<Annotation> methodBindingAnnotations) {
  Multimap<Class<? extends Annotation>, Annotation> mergedBeanBindings = SetMultimap.newSetMultimap(beanBindings);
  Multimap<Class<? extends Annotation>, Annotation> methodBindings = SetMultimap.newSetMultimap();
  for (Annotation methodBinding : methodBindingAnnotations) {
    methodBindings.put(methodBinding.annotationType(), methodBinding);
  }
  for (Class<? extends Annotation> key : methodBindings.keySet()) {
    mergedBeanBindings.replaceValues(key, methodBindings.get(key));
  }
  return mergedBeanBindings;
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

/**
 * Merges bean interceptor bindings (including inherited ones) with method interceptor bindings. Method interceptor bindings
 * override bean interceptor bindings. The bean binding map is not modified - a copy is used.
 */
protected Multimap<Class<? extends Annotation>, Annotation> mergeMemberInterceptorBindings(Multimap<Class<? extends Annotation>, Annotation> beanBindings,
    Set<Annotation> methodBindingAnnotations) {
  Multimap<Class<? extends Annotation>, Annotation> mergedBeanBindings = SetMultimap.newSetMultimap(beanBindings);
  Multimap<Class<? extends Annotation>, Annotation> methodBindings = SetMultimap.newSetMultimap();
  for (Annotation methodBinding : methodBindingAnnotations) {
    methodBindings.put(methodBinding.annotationType(), methodBinding);
  }
  for (Class<? extends Annotation> key : methodBindings.keySet()) {
    mergedBeanBindings.replaceValues(key, methodBindings.get(key));
  }
  return mergedBeanBindings;
}
origin: org.jboss.weld.se/weld-se-shaded

/**
 * Merges bean interceptor bindings (including inherited ones) with method interceptor bindings. Method interceptor bindings
 * override bean interceptor bindings. The bean binding map is not modified - a copy is used.
 */
protected Multimap<Class<? extends Annotation>, Annotation> mergeMemberInterceptorBindings(Multimap<Class<? extends Annotation>, Annotation> beanBindings,
    Set<Annotation> methodBindingAnnotations) {
  Multimap<Class<? extends Annotation>, Annotation> mergedBeanBindings = SetMultimap.newSetMultimap(beanBindings);
  Multimap<Class<? extends Annotation>, Annotation> methodBindings = SetMultimap.newSetMultimap();
  for (Annotation methodBinding : methodBindingAnnotations) {
    methodBindings.put(methodBinding.annotationType(), methodBinding);
  }
  for (Class<? extends Annotation> key : methodBindings.keySet()) {
    mergedBeanBindings.replaceValues(key, methodBindings.get(key));
  }
  return mergedBeanBindings;
}
origin: weld/core

private void validateEnabledAlternativeClasses(BeanManagerImpl beanManager, BeanDeployment deployment) {
  BeansXml beansXml = deployment.getBeanDeploymentArchive().getBeansXml();
  if (beansXml != null && !beansXml.getEnabledAlternativeClasses().isEmpty()) {
    // prepare lookup structure
    Map<String, Class<?>> loadedClasses = buildClassNameMap(beanManager.getEnabled().getAlternativeClasses());
    // lookup structure for validation of alternatives
    Multimap<Class<?>, Bean<?>> beansByClass = SetMultimap.newSetMultimap();
    for (Bean<?> bean : beanManager.getDynamicAccessibleBeans()) {
      if (!(bean instanceof NewBean)) {
        beansByClass.put(bean.getBeanClass(), bean);
      }
    }
    for (Metadata<String> definition : beansXml.getEnabledAlternativeClasses()) {
      Class<?> enabledClass = loadedClasses.get(definition.getValue());
      if (enabledClass.isAnnotation() || enabledClass.isInterface()) {
        throw ValidatorLogger.LOG.alternativeBeanClassNotClass(definition);
      } else {
        if (!isAlternativeBean(enabledClass, beansByClass) && !isAlternativeCandidate(enabledClass, beanManager)) {
          throw ValidatorLogger.LOG.alternativeBeanClassNotAnnotated(definition.getValue(), definition.getLocation());
        }
      }
    }
  }
}
org.jboss.weld.util.collectionsMultimapput

Popular methods of Multimap

  • entrySet
    Entry#getValue() always returns an unmodifiable collection. Entry#setValue(Object) operation is not
  • get
    This method never returns null. If no collection of values for a given key exists a new value collec
  • isEmpty
  • containsKey
  • keySet
  • size
    Unlike Guava'sMultimap#size() this method returns the number of key-value mappings.
  • uniqueValues
  • values
    The list may include the same value multiple times if it occurs in multiple mappings or if the colle
  • replaceValues
    Note that the original collection of values is completely replaced by a new collection which contain

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 17 PhpStorm 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