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/mbeans/registry RegistryMBeanImpl.java
Date Mon, 23 Feb 2004 13:15:05 GMT
weaver      2004/02/23 05:15:05

  Modified:    portal/src/java/org/apache/jetspeed/mbeans/registry
                        RegistryMBeanImpl.java
  Log:
  now uses registry component
  
  Revision  Changes    Path
  1.4       +6 -6      jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/mbeans/registry/RegistryMBeanImpl.java
  
  Index: RegistryMBeanImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/mbeans/registry/RegistryMBeanImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RegistryMBeanImpl.java	12 Jan 2004 06:41:45 -0000	1.3
  +++ RegistryMBeanImpl.java	23 Feb 2004 13:15:05 -0000	1.4
  @@ -57,9 +57,9 @@
   import java.util.Iterator;
   import java.util.List;
   
  -import org.apache.jetspeed.cps.CommonPortletServices;
  +import org.apache.jetspeed.Jetspeed;
  +import org.apache.jetspeed.components.portletregsitry.PortletRegistryComponent;
   import org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite;
  -import org.apache.jetspeed.registry.PortletRegistryService;
   
   /**
    * 
  @@ -96,9 +96,9 @@
        */
       public List getPortlets()
       {
  -        PortletRegistryService prs =
  -            (PortletRegistryService) CommonPortletServices.getPortalService(PortletRegistryService.SERVICE_NAME);
  -        List portlets = prs.getAllPortletDefinitions();
  +        PortletRegistryComponent regsitry =
  +            (PortletRegistryComponent) Jetspeed.getComponentManager().getComponent(PortletRegistryComponent.class);
  +        List portlets = regsitry.getAllPortletDefinitions();
           ArrayList list = new ArrayList(portlets.size());
           Iterator itr = portlets.iterator();
           while (itr.hasNext())
  
  
  

---------------------------------------------------------------------
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