Differences between revisions 8 and 9
Revision 8 as of 2004-12-11 00:04:29
Size: 1727
Editor: JackHung
Comment:
Revision 9 as of 2009-09-20 23:46:25
Size: 1727
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

List of Components


Example of Component: portal/src/java/org/apache/jetspeed/container/window/impl/PortletWindowAccessorImpl.java

Bean Definition in jetspeed-spring.xml

<!-- Portlet Window Component -->
  <bean id="org.apache.jetspeed.container.window.PortletWindowAccessor"
           class="org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl">
     <constructor-arg >
       <ref bean="org.apache.jetspeed.components.portletentity.PortletEntityAccessComponent" />
     </constructor-arg>
  </bean>

It is used in org.apache.jetspeed.velocity.JetspeedPowerTool:

    public JetspeedPowerTool() {
        super();
        cm = Jetspeed.getComponentManager();
        windowAccess = (PortletWindowAccessor) cm.getComponent(PortletWindowAccessor.class);
    }
    
    public WindowState getWindowState() throws Exception{
      try {
        RequestContext context = Jetspeed.getCurrentRequestContext();
        NavigationalState nav = context.getPortalURL().getNavigationalState();
        return nav.getState(''''windowAccess.getPortletWindow(getCurrentFragment())'''');
      } catch (Exception e) {
        handleError(e, e.toString(), getCurrentFragment());
        return null;
      }
    }

ComponentManager (last edited 2009-09-20 23:46:25 by localhost)