org.javers.core.metamodel.scanner.ClassScanner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javers-core Show documentation
Show all versions of javers-core Show documentation
JaVers - object auditing and diff framework for Java
package org.javers.core.metamodel.scanner;
/**
* Facade for PropertyScanner and ClassAnnotationScanner
* @author bartosz.walacik
*/
public class ClassScanner {
private final PropertyScanner propertyScanner;
private final ClassAnnotationsScanner classAnnotationsScanner;
public ClassScanner(PropertyScanner propertyScanner, ClassAnnotationsScanner classAnnotationsScanner) {
this.propertyScanner = propertyScanner;
this.classAnnotationsScanner = classAnnotationsScanner;
}
public ClassScan scan(Class managedClass){
ClassAnnotationsScan classScan = classAnnotationsScanner.scan(managedClass);
return new ClassScan(propertyScanner.scan(managedClass, classScan.hasIgnoreDeclaredProperties()), classScan);
}
}