[jboss-cvs] jboss-portal-docs/referenceGuide/en/modules ...
Roy Russo
russo at jboss.com
Mon Aug 21 10:20:20 EDT 2006
User: russo
Date: 06/08/21 10:20:20
Modified: referenceGuide/en/modules ipc.xml
Log:
JBPORTAL-936 - done.
Revision Changes Path
1.6 +16 -11 jboss-portal-docs/referenceGuide/en/modules/ipc.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ipc.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-portal-docs/referenceGuide/en/modules/ipc.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- ipc.xml 22 Mar 2006 18:09:53 -0000 1.5
+++ ipc.xml 21 Aug 2006 14:20:20 -0000 1.6
@@ -18,7 +18,7 @@
</para>
<note>For the remainder of this chapter, the sample available
<ulink
- url="http://labs.jboss.com/file-access/default/members/portletswap/downloads/portlets/samples/HelloWorldIPC.zip">
+ url="http://anonsvn.jboss.org/repos/portletswap/portlets/2_4/bundles/HelloWorldIPC.zip">
here</ulink>
, will be used to cover the API.
</note>
@@ -36,13 +36,17 @@
:
<programlisting>
<![CDATA[
+<?xml version="1.0" encoding="UTF-8"?>
<server>
- <mbean code="org.jboss.portal.core.event.PortalEventListenerServiceImpl"
+ <mbean
+ code="org.jboss.portal.core.event.PortalEventListenerServiceImpl"
name="portal:service=ListenerService,type=ipc_listener"
xmbean-dd=""
xmbean-code="org.jboss.portal.common.system.JBossServiceModelMBean">
- <depends optional-attribute-name="Registry" proxy-type="attribute">portal:service=ListenerRegistry</depends>
<xmbean/>
+ <depends
+ optional-attribute-name="Registry"
+ proxy-type="attribute">portal:service=ListenerRegistry</depends>
<attribute name="RegistryId">ipc_listener</attribute>
<attribute name="ListenerClassName">org.jboss.portlet.hello.HelloWorldPortletB$Listener</attribute>
</mbean>
@@ -78,11 +82,11 @@
<deployment>
<parent-ref>default</parent-ref>
<if-exists>overwrite</if-exists>
+ <properties/>
<page>
<page-name>IPC</page-name>
<listener>ipc_listener</listener>
- <properties/>
-...]]>
+ <properties/>...]]>
</programlisting>
<note>The
<emphasis>listener</emphasis>
@@ -102,9 +106,9 @@
listener in Portlet B, the recipient portlet.
<programlisting>
<![CDATA[
- public static class Listener implements PortalNodeEventListener
+public static class Listener implements PortalNodeEventListener
{
- public PortalNodeEvent onEvent(PortalNodeEventBubbler bubbler, PortalNodeEvent event)
+ public PortalNodeEvent onEvent(PortalNodeEventContext context, PortalNodeEvent event)
{
PortalNode node = event.getNode();
@@ -128,6 +132,7 @@
}
}
+ //
if(newEvent != null)
{
// If we have a new event redirect to it
@@ -136,7 +141,7 @@
else
{
// Otherwise bubble up
- return bubbler.dispatch(event);
+ return context.dispatch();
}
}
}]]>
More information about the jboss-cvs-commits
mailing list