Examples of ParentBean


Examples of org.apache.cxf.aegis.inheritance.ws2.common.ParentBean

*/
public class WS2Impl implements WS2 {
    private Map<String, ParentBean> map = new HashMap<String, ParentBean>();

    public WS2Impl() {
        ParentBean x = new ParentBean("X", new ContentBean1("data1-X"));
        ParentBean y = new ParentBean("Y", new ContentBean2("data1-Y", "content2-Y"));
        map.put(x.getId(), x);
        map.put(y.getId(), y);
    }
View Full Code Here

Examples of org.apache.cxf.aegis.inheritance.ws2.common.ParentBean

        }
        map.put(id, parentBean);
    }

    public synchronized ParentBean getParentBean(String id) throws NotFoundException {
        ParentBean result = map.get(id);
        if (result == null) {
            throw new NotFoundException(id);
        }

        return result;
View Full Code Here

Examples of org.apache.cxf.aegis.inheritance.ws2.common.ParentBean

public class WS2Impl implements WS2 {
    private Map<String, ParentBean> map = new HashMap<String, ParentBean>();

    public WS2Impl() {
        ParentBean x = new ParentBean("X", new ContentBean1("data1-X"));
        ParentBean y = new ParentBean("Y", new ContentBean2("data1-Y", "content2-Y"));
        map.put(x.getId(), x);
        map.put(y.getId(), y);
    }
View Full Code Here

Examples of org.apache.cxf.aegis.inheritance.ws2.common.ParentBean

        }
        map.put(id, parentBean);
    }

    public synchronized ParentBean getParentBean(String id) throws NotFoundException {
        ParentBean result = map.get(id);
        if (result == null) {
            throw new NotFoundException(id);
        }

        return result;
View Full Code Here

Examples of org.codehaus.xfire.aegis.inheritance.ws2.common.ParentBean

{
    private Map m_map = new HashMap();

    public WS2Impl()
    {
        ParentBean x = new ParentBean("X", new ContentBean1("data1-X"));
        ParentBean y = new ParentBean("Y", new ContentBean2("data1-Y", "content2-Y"));
        m_map.put(x.getId(), x);
        m_map.put(y.getId(), y);
    }
View Full Code Here

Examples of org.codehaus.xfire.aegis.inheritance.ws2.common.ParentBean

        System.out.println(ws2Proxy.getParentBean("X"));
        System.out.println(ws2Proxy.getParentBean("Y"));

        String baseId = System.currentTimeMillis() + "-";
        ParentBean parentBean;

        parentBean = new ParentBean(baseId + "A", new ContentBean1("data1-A"));
        ws2Proxy.putParentBean(parentBean);
        System.out.println(ws2Proxy.getParentBean(baseId + "A"));

        parentBean = new ParentBean(baseId + "B", new ContentBean2("data1-B", "content2-B"));
        ws2Proxy.putParentBean(parentBean);
        System.out.println(ws2Proxy.getParentBean(baseId + "B"));

        try
        {
View Full Code Here

Examples of org.codehaus.xfire.aegis.inheritance.ws2.common.ParentBean

    }

    public synchronized ParentBean getParentBean(String id)
        throws NotFoundException
    {
        ParentBean result = (ParentBean) m_map.get(id);
        if (result == null)
        {
            throw new NotFoundException(id);
        }
View Full Code Here

Examples of org.codehaus.xfire.aegis.inheritance.ws2.common.ParentBean

    {
        assertEquals(m_localWS2.getParentBean("X"), m_remoteWS2.getParentBean("X"));
        assertEquals(m_localWS2.getParentBean("Y"), m_remoteWS2.getParentBean("Y"));

        String baseId = System.currentTimeMillis() + "-";
        ParentBean parentBean;

        parentBean = new ParentBean(baseId + "A", new ContentBean1("data1-A"));
        m_localWS2.putParentBean(parentBean);
        m_remoteWS2.putParentBean(parentBean);
        assertEquals(m_localWS2.getParentBean(parentBean.getId()), m_remoteWS2
                .getParentBean(parentBean.getId()));

        parentBean = new ParentBean(baseId + "B", new ContentBean2("data1-B", "content2-B"));
        m_localWS2.putParentBean(parentBean);
        m_remoteWS2.putParentBean(parentBean);
        assertEquals(m_localWS2.getParentBean(parentBean.getId()), m_remoteWS2
                .getParentBean(parentBean.getId()));
    }
View Full Code Here

Examples of org.codehaus.xfire.aegis.inheritance.ws2.common.ParentBean

        Throwable remoteThrowable;

        // test AlreadyExists exception
        try
        {
            m_localWS2.putParentBean(new ParentBean("X", null));
            localThrowable = null;
        }
        catch (Throwable t)
        {
            localThrowable = t;
        }
        assertNotNull(localThrowable);

        try
        {
            m_remoteWS2.putParentBean(new ParentBean("X", null));
            remoteThrowable = null;
        }
        catch (Throwable t)
        {
            remoteThrowable = t;
View Full Code Here

Examples of org.codehaus.xfire.aegis.inheritance.ws2.common.ParentBean

*/
public class WS2Impl implements WS2 {
    private Map<String, ParentBean> map = new HashMap<String, ParentBean>();

    public WS2Impl() {
        ParentBean x = new ParentBean("X", new ContentBean1("data1-X"));
        ParentBean y = new ParentBean("Y", new ContentBean2("data1-Y", "content2-Y"));
        map.put(x.getId(), x);
        map.put(y.getId(), y);
    }
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.