this.rootBeanClass = rootBeanClass;
contextPath = new PathImpl();
}
public void register(Object bean, String property, String message, String messageTemplate, Object invalidValue) {
Path path = property != null ? contextPath.push(new PathImpl.NodeImpl(property)) : contextPath;
ConstraintViolation<T> violation = new ConstraintViolationImpl<T>(
message, messageTemplate, rootBean, rootBeanClass, bean, path, invalidValue);
violations.add(violation);
}