Package org.apache.cxf.aegis.inheritance.ws2

Examples of org.apache.cxf.aegis.inheritance.ws2.WS2


*/
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


        }
        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

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

        }
        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

    }

    public synchronized void putParentBean(ParentBean parentBean) throws AlreadyExistsException {
        String id = parentBean.getId();
        if (map.containsKey(id)) {
            throw new AlreadyExistsException(id);
        }
        map.put(id, parentBean);
    }
View Full Code Here

    }

    public synchronized void putParentBean(ParentBean parentBean) throws AlreadyExistsException {
        String id = parentBean.getId();
        if (map.containsKey(id)) {
            throw new AlreadyExistsException(id);
        }
        map.put(id, parentBean);
    }
View Full Code Here

    }

    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

    }

    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

*/
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

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

Related Classes of org.apache.cxf.aegis.inheritance.ws2.WS2

Copyright © 2018 www.massapicom. 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.