All Downloads are FREE. Search and download functionalities are using the official Maven repository.

one.edee.babylon.util.AntPathResourceLoader Maven / Gradle / Ivy

package one.edee.babylon.util;

import one.edee.babylon.export.Exporter;
import org.jetbrains.annotations.NotNull;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;

import java.io.IOException;

/**
 * Loads resources given a path, supporting Ant-style patterns such as:
 * 
 * /WEB-INF/*-context.xml
 * com/mycompany/**/applicationContext.xml
 * file:C:/some/path/*-context.xml
 * classpath:com/mycompany/**/applicationContext.xml
 * 
* * Specifies the resource loading contract of {@link Exporter}. * * @see PathMatchingResourcePatternResolver */ public interface AntPathResourceLoader { /** * Resolve the given path (with Ant-style patterns) into Resource objects. * * @return the corresponding Resource objects */ @NotNull Resource[] getResources(String antStylePath) throws IOException; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy