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

How to use
InjectionContext
in
org.jboss.injection.manager.spi

Best Java code snippets using org.jboss.injection.manager.spi.InjectionContext (Showing top 2 results out of 315)

origin: org.jboss.jbossas/weld-int-deployer

public <T> void inject(InjectionContext<T> injectionContext) throws InjectionException
{
  if (isInterceptor(injectionContext.getInjectionTarget())) {
    WeldManager weldManager = initWeldManagerIfNecessary();
    Object instance = injectionContext.getInjectionTarget();
    if (weldManager == null)
     throw new IllegalArgumentException("Null bean manager.");
    CreationalContext<Object> creationalContext =  weldManager.createCreationalContext(null);
    InjectionTarget<Object> injectionTarget = (InjectionTarget<Object>) weldManager.fireProcessInjectionTarget(weldManager.createAnnotatedType(instance.getClass()));
    injectionTarget.inject(instance, creationalContext);
  }
  injectionContext.proceed();
}
origin: org.jboss.jbossas/weld-int-deployer

public <T> void inject(InjectionContext<T> injectionContext) throws InjectionException
{
 WeldManager weldManager = initWeldManagerIfNecessary();
 Object instance = injectionContext.getInjectionTarget();
 if (weldManager == null)
   throw new IllegalArgumentException("Null bean manager.");
 CreationalContext<Object> creationalContext =  weldManager.createCreationalContext(null);
 InjectionTarget<Object> injectionTarget = (InjectionTarget<Object>) weldManager.fireProcessInjectionTarget(weldManager.createAnnotatedType(instance.getClass()));
 injectionTarget.inject(instance, creationalContext);
 injectionContext.proceed();
}
org.jboss.injection.manager.spiInjectionContext

Most used methods

  • getInjectionTarget
  • proceed

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Sublime Text for Python
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