congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
InjectionManager
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.jboss.ejb3/jboss-ejb3-core

/**
* Do not call, for BeanContainer.
* @throws IllegalAccessException 
* @throws InstantiationException 
*/
public Object createInterceptor(Class<?> interceptorClass) throws InstantiationException, IllegalAccessException
{
 Object instance = interceptorClass.newInstance();
 // TODO: This needs to be removed once we have all the RPs functioning 
 // and the InjectionManager will solely be responsible for injection
 InterceptorInjector interceptorInjector = interceptorInjectors.get(interceptorClass);
 assert interceptorInjector != null : "interceptorInjector not found for " + interceptorClass;
 interceptorInjector.inject(null, instance);
 
 // inject into the interceptor instance using InjectionManager.
 // the injection manager in a real environment should never
 // be null. But there are various legacy unit tests which
 // start up a container in various different ways and it's 
 // a real big task to set a mock injection manager in all those places
 if (this.injectionManager != null)
 {
   this.injectionManager.inject(instance);
 }
 return instance;
}
origin: org.jboss.managed.beans/managed-beans-mc-int

injectionManager.addInjector(eeInjector);
origin: org.jboss.jbossas/jboss-as-server

injectionManager.addInjector(eeInjector);
origin: org.jboss.jbossas/weld-int-deployer

builder.addUninstall("release");
kernelController.install(builder.getBeanMetaData(), injector);
deployment.addInjector(injector);
origin: org.jboss.managed.beans/managed-beans-impl

@Override
public ManagedBeanInstance<T> createManagedBeanInstance() throws Exception
{
 T instance = this.createInstance(this.managedBeanClass);
 Collection<Object> interceptorInstances = this.createInterceptors();
 // inject the MB instance
 this.injectionManager.inject(instance);
 // inject the interceptor instances
 for (Object interceptorInstance : interceptorInstances)
 {
   this.injectionManager.inject(interceptorInstance);
 }
 
 ManagedBeanInstance<T> mbInstance = new ManagedBeanInstanceImpl<T>(instance, interceptorInstances);
 // invoke post-construct
 this.handlePostConstruct(mbInstance);
 return mbInstance;
}
origin: org.jboss.jbossas/jboss-as-ejb3

injectionManager.addInjector(eeInjector);
 injectionManager.addInjector(lazyEEInjector);
origin: org.jboss.jbossas/jboss-as-tomcat

this.injectionManager.inject(object);
origin: org.jboss.ejb3/jboss-ejb3-core

  @Override
  public Object invokeTarget() throws Throwable
  {
   // TODO: Once InjectionManager is fully integrated,
   // this should be removed. Injection should happen solely via InjectionManager.inject
   if (invocationContext != null)
   {
     invocationContext.proceed();
   }
   // additional null safety check till InjectionManager is completely integrated
   if (this.injectionManager != null)
   {
     this.injectionManager.inject(ctx.getInstance());
   }
   // now inject the interceptor instances
   this.ctx.initialiseInterceptorInstances();
   // injection invocation doesn't have anything to return
   return null;
  }
}
org.jboss.injection.manager.spiInjectionManager

Most used methods

  • addInjector
  • inject

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JComboBox (javax.swing)
  • CodeWhisperer alternatives
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