Examples of ResourceInjectionService


Examples of org.apache.axis2.jaxws.resourceinjection.sei.ResourceInjectionService

 
    public void testEchoWithResourceInjectionAndLifecycleMethods(){
        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
    try{
      ResourceInjectionService service = new ResourceInjectionService();
      ResourceInjectionPortType proxy = service.getResourceInjectionPort();
      String response = proxy.echo("echo Request");
            TestLogger.logger.debug("Response String = " + response);
            TestLogger.logger.debug("------------------------------");
    }catch(Exception e){
      e.printStackTrace();
View Full Code Here

Examples of org.apache.axis2.jaxws.sample.resourceinjection.sei.ResourceInjectionService

    public static Test suite() {
        return getTestSetup(new TestSuite(ResourceInjectionTests.class));
    }
   
    public ResourceInjectionPortType getProxy() {
        ResourceInjectionService service = new ResourceInjectionService();
        ResourceInjectionPortType proxy = service.getResourceInjectionPort();
        BindingProvider p = (BindingProvider) proxy;
        p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, axisEndpoint);
        return proxy;
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.sample.resourceinjection.sei.ResourceInjectionService

    public static Test suite() {
        return getTestSetup(new TestSuite(ResourceInjectionTests.class));
    }
   
    public ResourceInjectionPortType getProxy() {
        ResourceInjectionService service = new ResourceInjectionService();
        ResourceInjectionPortType proxy = service.getResourceInjectionPort();
        BindingProvider p = (BindingProvider) proxy;
        p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, axisEndpoint);
        return proxy;
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.sample.resourceinjection.sei.ResourceInjectionService

    public static Test suite() {
        return getTestSetup(new TestSuite(ResourceInjectionTests.class));
    }
   
    public ResourceInjectionPortType getProxy() {
        ResourceInjectionService service = new ResourceInjectionService();
        ResourceInjectionPortType proxy = service.getResourceInjectionPort();
        BindingProvider p = (BindingProvider) proxy;
        p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, axisEndpoint);
        return proxy;
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.sample.resourceinjection.sei.ResourceInjectionService

    public static Test suite() {
        return getTestSetup(new TestSuite(ResourceInjectionTests.class));
    }
   
    public ResourceInjectionPortType getProxy() {
        ResourceInjectionService service = new ResourceInjectionService();
        ResourceInjectionPortType proxy = service.getResourceInjectionPort();
        BindingProvider p = (BindingProvider) proxy;
        p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, axisEndpoint);
        return proxy;
    }
View Full Code Here

Examples of org.apache.webbeans.spi.ResourceInjectionService

    protected void afterStopApplication(Object stopObject) throws Exception
    {

        //Clear the resource injection service
        ResourceInjectionService injectionServices = webBeansContext.getService(ResourceInjectionService.class);
        if(injectionServices != null)
        {
            injectionServices.clear();
        }

        //Comment out for commit OWB-502
        //ContextFactory.cleanUpContextFactory();
View Full Code Here

Examples of org.apache.webbeans.spi.ResourceInjectionService

        {
            servletContext = getServletContext(stopObject);
        }

        //Clear the resource injection service
        ResourceInjectionService injectionServices = getWebBeansContext().getService(ResourceInjectionService.class);
        if(injectionServices != null)
        {
            injectionServices.clear();
        }

        //Comment out for commit OWB-502
        //ContextFactory.cleanUpContextFactory();
View Full Code Here

Examples of org.apache.webbeans.spi.ResourceInjectionService

    {
        if(getWebBeansType().equals(WebBeansType.MANAGED))
        {
            try
            {
                ResourceInjectionService service = null;
                try
                {
                    service = getWebBeansContext().getService(ResourceInjectionService.class);
                   
                }
                catch(Exception e)
                {
                    // When running in tests
                }
               
                if(service != null)
                {
                    service.injectJavaEEResources(instance);  
                }
            }
            catch (Exception e)
            {
                getLogger().log(Level.SEVERE, OWBLogConst.ERROR_0023, instance);
View Full Code Here

Examples of org.apache.webbeans.spi.ResourceInjectionService

    @SuppressWarnings("unchecked")
    protected X createInstance(CreationalContext<X> creationalContext)
    {
        try
        {
            ResourceInjectionService resourceService = getWebBeansContext().getService(ResourceInjectionService.class);
            X instance = resourceService.getResourceReference(resourceReference);

            if (instance == null || Modifier.isFinal(instance.getClass().getModifiers()))
            {
                return instance;
            }
View Full Code Here

Examples of org.apache.webbeans.spi.ResourceInjectionService

     *
     * @return a new instance of this resource bean.
     */
    public X getActualInstance()
    {
        ResourceInjectionService resourceService = getWebBeansContext().getService(ResourceInjectionService.class);
        X instance = resourceService.getResourceReference(resourceReference);
        return instance;
    }
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.