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

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

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

origin: HotswapProjects/HotswapAgent

private static void doReinjectBean(BeanManagerImpl beanManager, AbstractClassBean<?> bean) {
  try {
    if (!bean.getScope().equals(ApplicationScoped.class) && HaCdiCommons.isRegisteredScope(bean.getScope())) {
      doReinjectRegisteredBeanInstances(beanManager, bean);
    } else {
      doReinjectBeanInstance(beanManager, bean, beanManager.getContext(bean.getScope()));
    }
  } catch (Exception e) {
    if (e.getClass().getSimpleName().equals("ContextNotActiveException")) {
      LOGGER.info("No active contexts for bean '{}'", bean.getBeanClass().getName());
    } else {
      throw e;
    }
  }
}
origin: HotswapProjects/HotswapAgent

private static void doReinjectBean(BeanManagerImpl beanManager, InjectionTargetBean<?> bean) {
  try {
    if (!bean.getScope().equals(ApplicationScoped.class) && HaCdiCommons.isRegisteredScope(bean.getScope())) {
      doReinjectRegisteredBeanInstances(beanManager, bean);
    } else {
      doReinjectBeanInstance(beanManager, bean, beanManager.getContext(bean.getScope()));
    }
  } catch (ContextNotActiveException e) {
    LOGGER.info("No active contexts for bean '{}'", bean.getBeanClass().getName());
  }
}
org.hotswap.agent.plugin.cdiHaCdiCommonsisRegisteredScope

Javadoc

Checks if scope is registered

Popular methods of HaCdiCommons

  • transformContext
    Add bean registry field to context, register bean instances in get(...) methods
  • getBeanInstances
    Return all bean instances.
  • 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

  • Finding current android device location
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Option (scala)
  • Top plugins for WebStorm
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