Attribute attributeType = element.attribute(ATTRIBUTE_TYPE);
Attribute attributeProxy = element.attribute(ATTRIBUTE_PROXY);
Attribute attributeSingle = element.attribute(ATTRIBUTE_SINGLE);
if (attributeId == null) {
throw new PareseException("Not found necessary attribute." + attributeId);
}
if (attributeType == null) {
throw new PareseException("Not found necessary attribute." + attributeType);
}
// 保存解析出的bean信息
try {
FactoryBuilder.getBeanFactory().addBean(attributeId.getStringValue(), attributeType.getStringValue(),
attributeSingle == null ? false : Boolean.parseBoolean(attributeSingle.getStringValue()),
attributeProxy == null ? false :
Boolean.parseBoolean(attributeProxy.getStringValue()));
} catch (AppExceptin e) {
throw new PareseException(e);
}
}