Package org.apache.wsrp4j.consumer.driver

Examples of org.apache.wsrp4j.consumer.driver.ConsumerPortletContext


    public void addPortlet(WSRPPortlet portlet) throws WSRPException {
        if (portlet != null) {
            super.addPortlet(portlet);

            // store PortletContext to persistent file
            ConsumerPortletContext consumerPortletContext = new ConsumerPortletContext();
            consumerPortletContext.setPortletContext(portlet.getPortletContext());
            consumerPortletContext.setPortletKey(portlet.getPortletKey());
            this.contextMap.put(portlet.getPortletKey().toString(), consumerPortletContext);

            // add as listener
            if (portlet instanceof StateChangedService) {
                ((StateChangedService)portlet).addListener(this);
View Full Code Here


        WSRPPortlet portlet = null;
        try {
            portlet = (WSRPPortlet)event.getSource();

            //store PortletContext to persistent file
            ConsumerPortletContext consumerPortletContext =
                (ConsumerPortletContext)contextMap.get(portlet.getPortletKey().toString());

            consumerPortletContext.setPortletContext(portlet.getPortletContext());
            consumerPortletContext.setPortletKey(portlet.getPortletKey());
        } catch (ClassCastException ce) {
            logger.error("StateChanged-error in portlet: " + portlet.getPortletKey().getPortletHandle(), ce);
        }
    }
View Full Code Here

    public void addPortlet(WSRPPortlet portlet) throws WSRPException {
        if (portlet != null) {
            super.addPortlet(portlet);

            // store PortletContext to persistent file
            ConsumerPortletContext consumerPortletContext = new ConsumerPortletContext();
            consumerPortletContext.setPortletContext(portlet.getPortletContext());
            consumerPortletContext.setPortletKey(portlet.getPortletKey());
            this.contextMap.put(portlet.getPortletKey().toString(), consumerPortletContext);

            // add as listener
            if (portlet instanceof StateChangedService) {
                ((StateChangedService)portlet).addListener(this);
View Full Code Here

        WSRPPortlet portlet = null;
        try {
            portlet = (WSRPPortlet)event.getSource();

            //store PortletContext to persistent file
            ConsumerPortletContext consumerPortletContext =
                (ConsumerPortletContext)contextMap.get(portlet.getPortletKey().toString());

            consumerPortletContext.setPortletContext(portlet.getPortletContext());
            consumerPortletContext.setPortletKey(portlet.getPortletKey());
        } catch (ClassCastException ce) {
            logger.error("StateChanged-error in portlet: " + portlet.getPortletKey().getPortletHandle(), ce);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.wsrp4j.consumer.driver.ConsumerPortletContext

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.