public JDBCValueClassMetaData(Element classElement,
ClassLoader classLoader) throws DeploymentException {
String className = MetaData.getUniqueChildContent(classElement, "class");
try {
javaType = classLoader.loadClass(className);
} catch (ClassNotFoundException e) {
throw new DeploymentException("dependent-value-class not found: " + className);
}
List propertyList = new ArrayList();
Iterator iterator = MetaData.getChildrenByTagName(classElement, "property");
while(iterator.hasNext()) {
Element propertyElement = (Element)iterator.next();
propertyList.add(new JDBCValuePropertyMetaData(propertyElement, javaType));
}
properties = Collections.unmodifiableList(propertyList);
}
Constructs a value class metadata class with the data contained in
the dependent-value-class xml element from a jbosscmp-jdbc xml file. Parameters:
classElement - the xml Element which contains the metadata about
this value class
classLoader - the ClassLoader which is used to load this value class
Throws:
DeploymentException - if the xml element is not semantically correct
|