1 17 package org.apache.geronimo.jetty6; 18 19 import org.apache.geronimo.gbean.GBeanInfo; 20 import org.apache.geronimo.gbean.GBeanInfoBuilder; 21 22 25 public class Host { 26 27 private final String [] hosts; 28 private final String [] virtualHosts; 29 30 public Host() { 31 hosts = null; 32 virtualHosts = null; 33 } 34 35 public Host(String [] hosts, String [] virtualHosts) { 36 this.hosts = hosts; 37 this.virtualHosts = virtualHosts; 38 } 39 40 public String [] getHosts() { 41 return hosts; 42 } 43 44 public String [] getVirtualHosts() { 45 return virtualHosts; 46 } 47 48 public static final GBeanInfo GBEAN_INFO; 49 50 static { 51 GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(Host.class, "Host"); 52 infoBuilder.addAttribute("hosts", String [].class, true); 53 infoBuilder.addAttribute("virtualHosts", String [].class, true); 54 infoBuilder.setConstructor(new String [] {"hosts", "virtualHosts"}); 55 GBEAN_INFO = infoBuilder.getBeanInfo(); 56 } 57 58 public static GBeanInfo getGBeanInfo() { 59 return GBEAN_INFO; 60 } 61 } 62 | Popular Tags |