HttpInvokerProxyFactoryBean afterPropertiesSet - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for HttpInvokerProxyFactoryBean afterPropertiesSet method.

This code example shows how to use the following methods:afterPropertiesSet, getObject, setServiceInterface, setServiceUrl
 
    @Test
    public void testHttpInvokeSpringService() throws Exception
    { 
        ComplexData cd = new ComplexData("Foo", new Integer(13));
        HttpInvokerProxyFactoryBean invoker = new HttpInvokerProxyFactoryBean();
        invoker.setServiceInterface(WorkInterface.class);
        invoker.setServiceUrl(SPRING_HTTP_ENDPOINT);
        invoker.afterPropertiesSet();
        WorkInterface worker = (WorkInterface)invoker.getObject();
        ComplexData data = worker.executeComplexity(cd);
        assertNotNull(data);
        assertEquals(data.getSomeString(), "Foo Received");
        assertEquals(data.getSomeInteger(), new Integer(14));
    } 
} 
7
CodeRank
afterPropertiesSet Method Overview
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
See Code Examples for other Spring Framework HttpInvokerProxyFactoryBean Methods: