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

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • 14 Best Plugins for Eclipse
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