1 17 package org.apache.geronimo.connector.deployment.dconfigbean; 18 19 import java.beans.*; 20 import java.awt.*; 21 22 25 public class ConnectionDefinitionDConfigBeanBeanInfo implements BeanInfo { 26 34 public int getDefaultEventIndex() { 35 return -1; 36 } 37 38 47 public int getDefaultPropertyIndex() { 48 return -1; 49 } 50 51 72 public Image getIcon(int iconKind) { 73 return null; 74 } 75 76 84 public BeanDescriptor getBeanDescriptor() { 85 BeanDescriptor bd = new BeanDescriptor(ConnectionDefinitionDConfigBean.class); 86 bd.setDisplayName("Connection Definition"); 87 bd.setShortDescription("Holds a list of connection instances available for this connector."); 88 return bd; 89 } 90 91 103 public BeanInfo[] getAdditionalBeanInfo() { 104 return null; 105 } 106 107 114 public EventSetDescriptor[] getEventSetDescriptors() { 115 return null; 116 } 117 118 125 public MethodDescriptor[] getMethodDescriptors() { 126 return null; 127 } 128 129 141 public PropertyDescriptor[] getPropertyDescriptors() { 142 try { 143 PropertyDescriptor instances = new PropertyDescriptor("connectionDefinitionInstance", ConnectionDefinitionDConfigBean.class); 144 instances.setDisplayName("Geronimo Connections"); 145 instances.setShortDescription("Geronimo allows several connection instances to be configured for the same connection type. For example, there may be connection instances pointing to several databases for a single JDBC instance of a connector."); 146 return new PropertyDescriptor[] { 147 instances 148 }; 149 } catch (IntrospectionException e) { 150 throw new RuntimeException ("Unable to parse bean", e); 151 } 152 } 153 } 154 | Popular Tags |