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

li.rudin.rt.api.resource.ResourceMapping Maven / Gradle / Ivy

There is a newer version: 4.1
Show newest version
package li.rudin.rt.api.resource;

import java.util.ArrayList;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ResourceMapping
{

	private static final List mapping = new ArrayList<>();
	private static final Logger logger = LoggerFactory.getLogger(ResourceMapping.class);
	
	/**
	 * Adds a mapped resource
	 * @param res
	 */
	public static void add(MappedResource res)
	{
		mapping.add(res);
		logger.debug("Added resource name({}) contentType({})", res.getName(), res.getContentType());
	}
	
	/**
	 * Returns all mappings
	 * @return
	 */
	public static List getMapping()
	{
		return mapping;
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy