176177178179180181182183184185186
} else if ("DataSource".equals(type)) { _driverType = TYPE_DATA_SOURCE; } else if (hasDriverTypeMethod(_driverClass)) { _init.addProgram(new PropertyStringProgram("driverType", type)); } else { throw new ConfigException(L.l("'{0}' is an unknown driver type. Valid types are 'ConnectionPoolDataSource', 'XADataSource' and 'Driver'")); } }
764765766767768769770771772773
String []values = prop.split("[=]"); if (values.length != 2) throw new ConfigException(L.l("'{0}' is an invalid URL. Bean URL syntax is 'scheme:prop1=value1;prop2=value2'", url)); program.addProgram(new PropertyStringProgram(values[0], values[1])); } return program; }
179180181182183184185186187188189
293294295296297298299
public void addStringProperty(String name, String value) { if (_init == null) _init = new ContainerProgram(); _init.addProgram(new PropertyStringProgram(name, value)); }
315316317318319320321
public void addOptionalStringProperty(String name, String value) { if (_init == null) _init = new ContainerProgram(); _init.addProgram(0, new PropertyStringProgram(name, value, true)); }
461462463464465466467468469470471
Object bean = create(null, TEXT); inject(bean); try { ConfigProgram program = new PropertyStringProgram(TEXT, text); if (_addProgram != null) _addProgram.setValue(bean, TEXT, program); else _addContentProgram.setValue(bean, TEXT, program);
89909192939495
public void setText(Object parent, QName name, String text) throws ConfigException { CustomBeanConfig customBean = (CustomBeanConfig) parent; customBean.addBuilderProgram(new PropertyStringProgram(name, text)); }
301302303304305306307
323324325326327328329