weaver 2004/02/23 05:14:43
Modified: portal/src/java/org/apache/jetspeed/deployment/impl
DeployPortletAppEventListener.java
Log:
now uses registry component
Revision Changes Path
1.6 +5 -5
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/deployment/impl/DeployPortletAppEventListener.java
Index: DeployPortletAppEventListener.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/deployment/impl/DeployPortletAppEventListener.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- DeployPortletAppEventListener.java 4 Feb 2004 21:27:07 -0000 1.5
+++ DeployPortletAppEventListener.java 23 Feb 2004 13:14:43 -0000 1.6
@@ -13,13 +13,13 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.apache.jetspeed.Jetspeed;
+import org.apache.jetspeed.components.portletregsitry.PortletRegistryComponent;
import org.apache.jetspeed.deployment.DeploymentEvent;
import org.apache.jetspeed.deployment.DeploymentEventListener;
import org.apache.jetspeed.deployment.DeploymentException;
import org.apache.jetspeed.deployment.fs.FSObjectHandler;
-import org.apache.jetspeed.registry.JetspeedPortletRegistry;
import org.apache.jetspeed.tools.pamanager.Deployment;
-
import org.apache.jetspeed.tools.pamanager.PortletApplicationException;
import org.jdom.Document;
import org.jdom.Element;
@@ -77,8 +77,8 @@
{
throw new PortletApplicationException("<portlet-app>
requires a unique \"id\" attribute.");
}
-
- if
(JetspeedPortletRegistry.getPortletApplicationByIndetifier(id) != null)
+ PortletRegistryComponent regsitry =
(PortletRegistryComponent)
Jetspeed.getComponentManager().getComponent(PortletRegistryComponent.class);
+ if (regsitry.getPortletApplicationByIndetifier(id) != null)
{
log.info("Portlet application \"" + id + "\"" + " already
been registered. Skipping initial deployment.");
// still need to register the filename to the app name so
undeploy works correctly
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]