portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/services/information StaticInformationProviderImpl.java
Date Mon, 23 Feb 2004 13:15:14 GMT
weaver      2004/02/23 05:15:14

  Modified:    portal/src/java/org/apache/jetspeed/services/information
                        StaticInformationProviderImpl.java
  Log:
  
  
  Revision  Changes    Path
  1.6       +11 -9     jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/services/information/StaticInformationProviderImpl.java
  
  Index: StaticInformationProviderImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/services/information/StaticInformationProviderImpl.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- StaticInformationProviderImpl.java	12 Jan 2004 06:45:26 -0000	1.5
  +++ StaticInformationProviderImpl.java	23 Feb 2004 13:15:13 -0000	1.6
  @@ -56,12 +56,13 @@
   import javax.servlet.ServletConfig;
   import javax.servlet.ServletContext;
   
  -import org.apache.pluto.services.information.PortalContextProvider;
  -import org.apache.pluto.services.information.StaticInformationProvider;
  +import org.apache.jetspeed.Jetspeed;
  +import org.apache.jetspeed.components.portletregsitry.PortletRegistryComponent;
  +import org.apache.jetspeed.engine.core.PortalContextProviderImpl;
   import org.apache.pluto.om.common.ObjectID;
   import org.apache.pluto.om.portlet.PortletDefinition;
  -import org.apache.jetspeed.engine.core.PortalContextProviderImpl;
  -import org.apache.jetspeed.registry.JetspeedPortletRegistry;
  +import org.apache.pluto.services.information.PortalContextProvider;
  +import org.apache.pluto.services.information.StaticInformationProvider;
   
   /**
    * Provides static information to Pluto Container:
  @@ -72,8 +73,7 @@
    * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
    * @version $Id$
    */
  -public class StaticInformationProviderImpl
  -    implements StaticInformationProvider
  +public class StaticInformationProviderImpl implements StaticInformationProvider
   {
       private ServletConfig config = null;
   
  @@ -90,9 +90,11 @@
        */
       public PortletDefinition getPortletDefinition(String uniqueId)
       {
  -        return JetspeedPortletRegistry.getPortletDefinitionByIndetifier(uniqueId); 
  +        PortletRegistryComponent regsitry =
  +            (PortletRegistryComponent) Jetspeed.getComponentManager().getComponent(PortletRegistryComponent.class);
  +        return regsitry.getPortletDefinitionByIndetifier(uniqueId);
       }
  -    
  +
       /** 
        * <p>
        * getPortalContextProvider
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message