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

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

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

origin: HotswapProjects/HotswapAgent

/**
 * Gets the context class for specified scope.
 *
 * @param scope the scope
 * @return the context class
 */
public static Class<? extends Context> getContextClass(Class<? extends Annotation> scope) {
  return getCurrentScopeToContextMap().get(scope);
}
origin: HotswapProjects/HotswapAgent

/**
 * Register context class.
 *
 * @param scope the scope
 * @param contextClass the context class
 */
public static void registerContextClass(Class<? extends Annotation> scope, Class<? extends Context> contextClass) {
  Map<Class<? extends Annotation>, Class<? extends Context>> currentScopeToContextMap = getCurrentScopeToContextMap();
  if (!currentScopeToContextMap.containsKey(scope)) {
    LOGGER.debug("Registering scope '{}' to scopeToContextMap@{}", scope.getName(), System.identityHashCode(currentScopeToContextMap));
    currentScopeToContextMap.put(scope, contextClass);
  }
}
org.hotswap.agent.plugin.cdiHaCdiCommonsgetCurrentScopeToContextMap

Popular methods of HaCdiCommons

  • transformContext
    Add bean registry field to context, register bean instances in get(...) methods
  • getBeanInstances
    Return all bean instances.
  • isRegisteredScope
    Checks if scope is registered
  • addBeanRegistryToContext
    Adds the bean registry to context.
  • getBeanRegistry
  • getContextClass
    Gets the context class for specified scope.
  • 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
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • JLabel (javax.swing)
  • 21 Best IntelliJ 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