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

com.ja.smarkdown.location.webinf.WebInfLocationHandler Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
package com.ja.smarkdown.location.webinf;

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

import javax.inject.Inject;

import com.ja.smarkdown.model.LocationHandler;
import com.ja.smarkdown.model.ResourceInfo;
import com.ja.smarkdown.model.config.Location;

public class WebInfLocationHandler implements LocationHandler {

	@Inject
	private WebInfListingProvider listing;
	@Inject
	private WebInfDocumentProvider documents;

	private List locations = new ArrayList();

	@Override
	public List listDocuments() {
		return listing.getDocuments(locations);
	}

	@Override
	public ResourceInfo loadDocument(final String resource) {
		return documents.getDocument(locations, resource);
	}

	@Override
	public void add(final Location location) {
		locations.add(location);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy