You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2005/04/27 01:16:33 UTC
cvs commit: jakarta-jetspeed-2/applications/palm/src/java/org/apache/jetspeed/portlets/palm PortletApplicationLifecycleManager.java PortletApplicationResources.java
taylor 2005/04/26 16:16:33
Modified: applications/palm/src/java/org/apache/jetspeed/portlets/palm
PortletApplicationLifecycleManager.java
Removed: applications/palm/src/java/org/apache/jetspeed/portlets/palm
PortletApplicationResources.java
Log:
centralizing all references to CPS_
Revision Changes Path
1.2 +6 -5 jakarta-jetspeed-2/applications/palm/src/java/org/apache/jetspeed/portlets/palm/PortletApplicationLifecycleManager.java
Index: PortletApplicationLifecycleManager.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/applications/palm/src/java/org/apache/jetspeed/portlets/palm/PortletApplicationLifecycleManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- PortletApplicationLifecycleManager.java 26 Mar 2005 02:17:09 -0000 1.1
+++ PortletApplicationLifecycleManager.java 26 Apr 2005 23:16:33 -0000 1.2
@@ -29,6 +29,7 @@
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
+import org.apache.jetspeed.CommonPortletServices;
import org.apache.jetspeed.components.portletregistry.PortletRegistry;
import org.apache.jetspeed.components.portletregistry.RegistryException;
import org.apache.jetspeed.deployment.DeploymentManager;
@@ -59,10 +60,10 @@
{
super.init(config);
PortletContext context = getPortletContext();
- registry = (PortletRegistry)context.getAttribute(PortletApplicationResources.CPS_REGISTRY_COMPONENT);
- portletFactory = (PortletFactory)context.getAttribute(PortletApplicationResources.CPS_PORTLET_FACTORY_COMPONENT);
- dm = (DeploymentManager)context.getAttribute(PortletApplicationResources.CPS_DEPLOYMENT_MANAGER_COMPONENT);
- asm = (ApplicationServerManager)context.getAttribute(PortletApplicationResources.CPS_APPLICATION_SERVER_MANAGER_COMPONENT);
+ registry = (PortletRegistry)context.getAttribute(CommonPortletServices.CPS_REGISTRY_COMPONENT);
+ portletFactory = (PortletFactory)context.getAttribute(CommonPortletServices.CPS_PORTLET_FACTORY_COMPONENT);
+ dm = (DeploymentManager)context.getAttribute(CommonPortletServices.CPS_DEPLOYMENT_MANAGER_COMPONENT);
+ asm = (ApplicationServerManager)context.getAttribute(CommonPortletServices.CPS_APPLICATION_SERVER_MANAGER_COMPONENT);
if (null == registry)
{
throw new PortletException("Failed to find the Portlet Registry on portlet initialization");
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org