);
}
private <T> void initBeanMetaData(Set<InputStream> mappingStreams) {
XmlMappingParser mappingParser = new XmlMappingParser( constraintHelper );
mappingParser.parse( mappingStreams );
AnnotationIgnores annotationIgnores = mappingParser.getAnnotationIgnores();
for ( Class<?> beanClass : mappingParser.getProcessedClasses() ) {
BeanMetaDataImpl<?> metaData = new BeanMetaDataImpl<T>(
( Class<T> ) beanClass, constraintHelper, annotationIgnores
);
for ( MetaConstraint<?, ? extends Annotation> constraint : mappingParser.getConstraintMap()
.get( beanClass ) ) {
metaData.addMetaConstraint( constraint );
}
for ( Member m : mappingParser.getCascadedMembers().get( beanClass ) ) {
metaData.addCascadedMember( m );
}
if ( mappingParser.getDefaultSequences().containsKey( beanClass ) ) {
metaData.setDefaultGroupSequence( mappingParser.getDefaultSequences().get( beanClass ) );
}
beanMetaDataCache.addBeanMetaData( ( Class<T> ) beanClass, ( BeanMetaDataImpl<T> ) metaData );
}
}