io.carml.engine.sourceresolver.ClassPathResolver Maven / Gradle / Ivy
package io.carml.engine.sourceresolver;
import java.util.Optional;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
@AllArgsConstructor(access = AccessLevel.PRIVATE)
public class ClassPathResolver implements SourceResolver {
private final String basePath;
private final Class> loadingClass;
public static ClassPathResolver of(String basePath) {
return of(basePath, null);
}
public static ClassPathResolver of(Class> loadingClass) {
return of("", loadingClass);
}
public static ClassPathResolver of(String basePath, Class> loadingClass) {
return new ClassPathResolver(basePath, loadingClass);
}
@Override
public Optional
© 2015 - 2025 Weber Informatics LLC | Privacy Policy