1 30 31 package com.nightlabs.config; 32 33 import java.beans.IntrospectionException ; 34 import java.beans.PropertyDescriptor ; 35 import java.beans.SimpleBeanInfo ; 36 37 import org.apache.log4j.Logger; 38 39 public class ConfigModuleBeanInfo 40 extends SimpleBeanInfo 41 { 42 public static final Logger LOGGER = Logger.getLogger(ConfigModuleBeanInfo.class); 43 44 Class beanClass = ConfigModule.class; 45 46 private static final int PROPERTY_identifier = 0; 47 private static final int PROPERTY_searchClass = 1; 48 49 public PropertyDescriptor [] getPropertyDescriptors() 50 { 51 PropertyDescriptor [] properties = new PropertyDescriptor [2]; 52 53 try { 54 properties[PROPERTY_identifier] = new PropertyDescriptor ( "identifier", beanClass, null, null ); 59 properties[PROPERTY_searchClass] = new PropertyDescriptor ( "searchClass", beanClass, null, null ); 60 } 61 catch( IntrospectionException e) { 62 LOGGER.error("", e); 63 } 64 65 return properties; 67 } 68 69 } 70 | Popular Tags |