Author: epbernard
Date: 2007-01-25 14:20:44 -0500 (Thu, 25 Jan 2007)
New Revision: 11103
Modified:
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/ClassValidator.java
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/event/ValidateEventListener.java
Log:
ANN-545
Modified:
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/ClassValidator.java
===================================================================
---
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/ClassValidator.java 2007-01-25
13:22:47 UTC (rev 11102)
+++
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/ClassValidator.java 2007-01-25
19:20:44 UTC (rev 11103)
@@ -38,7 +38,7 @@
import org.hibernate.reflection.XMember;
import org.hibernate.reflection.XMethod;
import org.hibernate.reflection.XProperty;
-import org.hibernate.reflection.java.xml.EJB3ReflectionManager;
+import org.hibernate.reflection.java.JavaReflectionManager;
import org.hibernate.util.IdentitySet;
import org.hibernate.validator.interpolator.DefaultMessageInterpolatorAggerator;
@@ -120,7 +120,7 @@
Class<T> beanClass, ResourceBundle resourceBundle, MessageInterpolator
interpolator,
Map<XClass, ClassValidator> childClassValidators, ReflectionManager
reflectionManager
) {
- this.reflectionManager = reflectionManager != null ? reflectionManager : new
EJB3ReflectionManager();
+ this.reflectionManager = reflectionManager != null ? reflectionManager : new
JavaReflectionManager();
XClass beanXClass = this.reflectionManager.toXClass( beanClass );
this.beanClass = beanClass;
this.messageBundle = resourceBundle == null ?
@@ -651,7 +651,7 @@
this.messageBundle = rb;
this.userInterpolator = (MessageInterpolator) ois.readObject();
this.defaultMessageBundle = ResourceBundle.getBundle( DEFAULT_VALIDATOR_MESSAGE );
- reflectionManager = new EJB3ReflectionManager();
+ reflectionManager = new JavaReflectionManager();
initValidator( reflectionManager.toXClass( beanClass ), new HashMap<XClass,
ClassValidator>() );
}
}
Modified:
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/event/ValidateEventListener.java
===================================================================
---
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/event/ValidateEventListener.java 2007-01-25
13:22:47 UTC (rev 11102)
+++
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/event/ValidateEventListener.java 2007-01-25
19:20:44 UTC (rev 11103)
@@ -26,7 +26,7 @@
import org.hibernate.property.PropertyAccessor;
import org.hibernate.property.PropertyAccessorFactory;
import org.hibernate.reflection.ReflectionManager;
-import org.hibernate.reflection.java.xml.EJB3ReflectionManager;
+import org.hibernate.reflection.java.JavaReflectionManager;
import org.hibernate.util.ReflectHelper;
import org.hibernate.util.StringHelper;
import org.hibernate.validator.ClassValidator;
@@ -78,7 +78,7 @@
reflectionManager = ( (AnnotationConfiguration)
cfg).getReflectionManager();
}
else {
- reflectionManager = new EJB3ReflectionManager();
+ reflectionManager = new JavaReflectionManager();
}
while ( classes.hasNext() ) {
PersistentClass clazz = classes.next();
Show replies by date