org.javers.mongosupport.RequiredMongoSupportPredicate 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.mongosupport;
import org.javers.repository.api.JaversRepository;
import java.util.function.Predicate;
public class RequiredMongoSupportPredicate implements Predicate {
private static final String JAVERS_MONGO_REPOSITORY_CLASS_NAME = "org.javers.repository.mongo.MongoRepository";
@Override
public boolean test(JaversRepository repository) {
return repository != null && repository.getClass().getName().equals(JAVERS_MONGO_REPOSITORY_CLASS_NAME);
}
}