Tabnine Logo
HaCdiCommons.getBeanInstances
Code IndexAdd Tabnine to your IDE (free)

How to use
getBeanInstances
method
in
org.hotswap.agent.plugin.cdi.HaCdiCommons

Best Java code snippets using org.hotswap.agent.plugin.cdi.HaCdiCommons.getBeanInstances (Showing top 2 results out of 315)

origin: HotswapProjects/HotswapAgent

@SuppressWarnings("rawtypes")
private static void doReinjectRegisteredBeanInstances(BeanManagerImpl beanManager, AbstractClassBean bean) {
  for (Object instance: HaCdiCommons.getBeanInstances(bean)) {
    if (instance != null) {
      doCallInject(beanManager, bean, instance);
    }
  }
}
origin: HotswapProjects/HotswapAgent

@SuppressWarnings({ "unchecked", "rawtypes" })
private static void doReinjectRegisteredBeanInstances(BeanManagerImpl beanManager, InjectionTargetBean bean) {
  for (Object instance: HaCdiCommons.getBeanInstances(bean)) {
    if (instance != null) {
      bean.getProducer().inject(instance, beanManager.createCreationalContext(bean));
      LOGGER.info("Bean '{}' injection points was reinjected.", bean.getBeanClass().getName());
    } else {
      LOGGER.info("Unexpected 'null' bean instance in registry. bean='{}'", bean.getBeanClass().getName());
    }
  }
}
org.hotswap.agent.plugin.cdiHaCdiCommonsgetBeanInstances

Javadoc

Return all bean instances.

Popular methods of HaCdiCommons

  • transformContext
    Add bean registry field to context, register bean instances in get(...) methods
  • isRegisteredScope
    Checks if scope is registered
  • addBeanRegistryToContext
    Adds the bean registry to context.
  • getBeanRegistry
  • getContextClass
    Gets the context class for specified scope.
  • getCurrentScopeToContextMap
  • getRegistrationCode
  • transformGet1
    Transform 1 argument get method :public T get(Contextual contextual);
  • transformGet2
    Transform 2 arguments get method :public T get(Contextual contextual, CreationalContext creationalCo

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • 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