Examples of inject()


Examples of org.eclipse.jetty.plus.annotation.InjectionCollection.inject()

        if (runAses != null)
            runAses.setRunAs(o);

        InjectionCollection injections = (InjectionCollection)_context.getAttribute(InjectionCollection.INJECTION_COLLECTION);
        if (injections != null)
            injections.inject(o);

        LifeCycleCallbackCollection callbacks = (LifeCycleCallbackCollection)_context.getAttribute(LifeCycleCallbackCollection.LIFECYCLE_CALLBACK_COLLECTION);
        if (callbacks != null)
        {
            try
View Full Code Here

Examples of org.eclipse.php.internal.ui.editor.contentassist.UseStatementInjector.inject()

            IType[] types = PhpModelAccess.getDefault().findTypes(null, type, MatchRule.EXACT, 0, 0, scope, new NullProgressMonitor());
           
            if (types.length == 1) {
              this.type = types[0];
              UseStatementInjector injector = new UseStatementInjector(this);
              injector.inject(document, viewer, offset);
            } else if (types.length > 1) {
             
              Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
             
              ElementListSelectionDialog dialog = new ElementListSelectionDialog(shell, new TypeLabelProvider());
View Full Code Here

Examples of org.infinispan.marshall.VersionAwareMarshaller.inject()

@Test(groups = "unit", enabled = true, testName = "loaders.bdbje.BdbjeCacheStoreIntegrationVamTest")
public class BdbjeCacheStoreIntegrationVamTest extends BdbjeCacheStoreIntegrationTest {
   @Override
   protected Marshaller getMarshaller() {
      VersionAwareMarshaller marshaller = new VersionAwareMarshaller();
      marshaller.inject(Thread.currentThread().getContextClassLoader(), new RemoteCommandFactory());
      marshaller.start();
      return marshaller;
   }

}
View Full Code Here

Examples of org.jboss.arquillian.core.api.Injector.inject()

               .thenReturn(new AnnotationDeploymentScenarioGenerator());
      when(serviceLoader.onlyOne(eq(DeployableContainer.class))).thenReturn(deployableContainer);
      when(deployableContainer.getDefaultProtocol()).thenReturn(new ProtocolDescription(PROTOCOL_NAME_1));
     
      when(serviceLoader.all(eq(AuxiliaryArchiveAppender.class)))
         .thenReturn(create(AuxiliaryArchiveAppender.class, injector.inject(new TestAuxiliaryArchiveAppender())));
      when(serviceLoader.all(eq(AuxiliaryArchiveProcessor.class)))
         .thenReturn(create(AuxiliaryArchiveProcessor.class, injector.inject(new TestAuxiliaryArchiveProcessor())));
      when(serviceLoader.all(eq(ApplicationArchiveProcessor.class)))
         .thenReturn(create(ApplicationArchiveProcessor.class, injector.inject(new TestApplicationArchiveAppender())));
View Full Code Here

Examples of org.jboss.arquillian.core.spi.Manager.inject()

            Command operation = payload.getCommand();
            Manager manager = (Manager)request.getAttribute(ARQUILLIAN_MANAGER_ATTRIBUTE);
            // execute remote Event
            try{
                manager.fire(new ActivateManager(manager));
                manager.inject(operation);
                operation.perform();
                manager.fire(new PassivateManager(manager));
            } catch (Throwable e) {
                payload.setThrowable(e);
            }
View Full Code Here

Examples of org.jboss.as.connector.adapters.jdbc.util.Injection.inject()

                    ClassLoader cl = Thread.currentThread().getContextClassLoader();
                    Class<?> clazz = cl.loadClass(exceptionSorterClassName);
                    exceptionSorter = (ExceptionSorter) clazz.newInstance();
                    Injection injection = new Injection();
                    for (Entry<Object, Object> prop : exceptionSorterProps.entrySet()) {
                        injection.inject(exceptionSorter, (String) prop.getKey(), (String) prop.getValue());
                    }
                    return exceptionSorter.isExceptionFatal(e);
                } catch (Exception e2) {
                    log.warn("exception trying to create exception sorter (disabling):", e2);
                    exceptionSorter = new NullExceptionSorter();
View Full Code Here

Examples of org.jboss.as.connector.util.Injection.inject()

                                if (cpmd16.getConfigPropertyIgnore() != null && cpmd16.getConfigPropertyIgnore().booleanValue())
                                    setValue = false;
                            }

                            if (setValue)
                                injector.inject(cpmd.getConfigPropertyType().getValue(), cpmd.getConfigPropertyName()
                                        .getValue(), cpmd.getConfigPropertyValue().getValue(), o);
                        }
                    }
                }
View Full Code Here

Examples of org.jboss.ejb3.interceptor.InterceptorInjector.inject()

   public Object createInterceptor(Class<?> interceptorClass) throws InstantiationException, IllegalAccessException
   {
      Object instance = interceptorClass.newInstance();
      InterceptorInjector interceptorInjector = interceptorInjectors.get(interceptorClass);
      assert interceptorInjector != null : "interceptorInjector not found for " + interceptorClass;
      interceptorInjector.inject(null, instance);
      return instance;
   }
  
   public String createObjectName(String unitName, String ejbName)
   {
View Full Code Here

Examples of org.jboss.jca.core.util.Injection.inject()

         Injection injector = new Injection();
         for (ConfigProperty cp : listConfProp)
         {
            if (!XsdString.isNull(cp.getConfigPropertyValue()))
            {
               injector.inject(mcf, cp.getConfigPropertyName().getValue(),
                  cp.getConfigPropertyValue().getValue(), cp.getConfigPropertyType().getValue());
            }
         }
        
         mcClz = mcf.createManagedConnection(null, null);
View Full Code Here

Examples of org.jboss.resteasy.core.PropertyInjectorImpl.inject()

   }

   protected void addNewInterceptor(List<T> list, Object interceptor)
   {
      PropertyInjectorImpl injector = new PropertyInjectorImpl(interceptor.getClass(), providerFactory);
      injector.inject(interceptor);
      list.add((T) interceptor);
   }

   public void register(Class<? extends T> clazz)
   {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.