Examples of inject()


Examples of org.jboss.resteasy.spi.PropertyInjector.inject()

         PropertyInjector propertyInjector = resourceFactory.getPropertyInjector();

         HttpRequest request = ResteasyProviderFactory.getContextData(HttpRequest.class);
         if (isSingleton(beanName) || request == null)
         {
            propertyInjector.inject(bean);
         }
         else
         {
            HttpResponse response = ResteasyProviderFactory.getContextData(HttpResponse.class);
            propertyInjector.inject(request, response, bean);
View Full Code Here

Examples of org.jboss.resteasy.spi.PropertyInjector.inject()

            propertyInjector.inject(bean);
         }
         else
         {
            HttpResponse response = ResteasyProviderFactory.getContextData(HttpResponse.class);
            propertyInjector.inject(request, response, bean);
         }

         return bean;
      }
View Full Code Here

Examples of org.jboss.seam.Component.inject()

               }

               injecting = true;
               try
               {
                  component.inject(invocation.getTarget(), enforceRequired);
               }
               finally
               {
                  injecting = false;
               }
View Full Code Here

Examples of org.jboss.wsf.spi.invocation.ResourceInjector.inject()

         InvocationContext invContext = epInv.getInvocationContext();
         WebServiceContext wsContext = invContext.getAttachment(WebServiceContext.class);
         if (wsContext != null)
         {
            ResourceInjector injector = resourceInjectorFactory.newResourceInjector();
            injector.inject(targetBean, wsContext);
         }

         Method method = getImplMethod(targetBean.getClass(), epInv.getJavaMethod());
         Object retObj = method.invoke(targetBean, epInv.getArgs());
         epInv.setReturnValue(retObj);
View Full Code Here

Examples of org.jvnet.hk2.component.InjectionManager.inject()

        // inject resolver with command parameters...
        final InjectionManager manager = new InjectionManager();

        CrudResolver resolver = habitat.getComponent(resolverType);

        manager.inject(resolver, getInjectionResolver());

        final ConfigBeanProxy parentBean = resolver.resolve(context, parentType);
        if (parentBean==null) {
            String msg = localStrings.getLocalString(GenericCrudCommand.class,
                    "GenericCreateCommand.target_object_not_found",
View Full Code Here

Examples of org.nutz.lang.inject.Injecting.inject()

      ObjcetNaviNode onn = entry.getValue();
      Injecting in = mirror.getInjecting(entry.getKey());
      if (onn.isLeaf()) {
        try {
          ParamConvertor pc = Params.makeParamConvertor(mirror.getField(entry.getKey()).getType());
          in.inject(obj, pc.convert(onn.getValue()));
  //        in.inject(obj, onn.getValue());
        } catch (NoSuchFieldException e) {
          continue;
        }
        continue;
View Full Code Here

Examples of org.nutz.lang.inject.Injecting.inject()

      }
      // 不是叶子结点,不能直接注入
      Mirror<?> fieldMirror;
      try {
        fieldMirror = Mirror.me(mirror.getField(entry.getKey()).getType());
        in.inject(obj, onn.inject(fieldMirror));
      }
      catch (NoSuchFieldException e) {
        continue;//TODO 是不是应该log一下呢?
      }
    }
View Full Code Here

Examples of org.nutz.lang.inject.Injecting.inject()

        s = req.getParameter(names[i]);
      if (null == s)
        continue;
      if (s instanceof String && Strings.isBlank((String) s))
        s = null;
      inj.inject(obj, s);
    }
    return obj;
  }

}
View Full Code Here

Examples of org.objectweb.celtix.common.injection.ResourceInjector.inject()

     * information.
     */
    protected void injectResources(Object instance) {
        if (instance != null) {
            ResourceInjector injector = new ResourceInjector(bus.getResourceManager());
            injector.inject(instance);
        }
    }

    /**
     * inject resources into servant.  The resources are injected
View Full Code Here

Examples of org.objectweb.celtix.common.injection.ResourceInjector.inject()

        TestBinding b = new TestBinding();
        SystemHandlerChainType shc = createSystemHandlerChain();
        Configuration c = control.createMock(Configuration.class);
        expect(c.getObject("systemHandlerChain")).andReturn(shc);
        ResourceInjector ri = control.createMock(ResourceInjector.class);
        ri.inject(EasyMock.isA(SystemHandler.class));
        EasyMock.expectLastCall().times(6);
        control.replay();
       
        b.configureSystemHandlers(c);
        b.injectSystemHandlers(ri);
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.