1 17 package org.apache.geronimo.console.gbean; 18 19 import org.apache.geronimo.gbean.GBeanInfo; 20 import org.apache.geronimo.gbean.GBeanInfoBuilder; 21 22 28 public class ContextForwardGBean implements ContextForward { 29 private String portalPathPrefix; 30 private String portletContextPath; 31 private String portletServletPath; 32 33 public ContextForwardGBean(String portalPathPrefix, String portletContextPath, String portletServletPath) { 34 this.portalPathPrefix = portalPathPrefix; 35 this.portletContextPath = portletContextPath; 36 this.portletServletPath = portletServletPath; 37 } 38 39 public String getPortalPathPrefix() { 40 return portalPathPrefix; 41 } 42 43 public String getPortletContextPath() { 44 return portletContextPath; 45 } 46 47 public String getPortletServletPath() { 48 return portletServletPath; 49 } 50 51 public static final GBeanInfo GBEAN_INFO; 52 static { 53 GBeanInfoBuilder infoFactory = GBeanInfoBuilder.createStatic(ContextForwardGBean.class); 54 infoFactory.addAttribute("portalPathPrefix", String .class, true, true); 55 infoFactory.addAttribute("portletContextPath", String .class, true, true); 56 infoFactory.addAttribute("portletServletPath", String .class, true, true); 57 infoFactory.addInterface(ContextForward.class); 58 infoFactory.setConstructor(new String []{"portalPathPrefix","portletContextPath","portletServletPath"}); 59 GBEAN_INFO = infoFactory.getBeanInfo(); 60 } 61 public static GBeanInfo getGBeanInfo() { 62 return GBEAN_INFO; 63 } 64 } 65 | Popular Tags |