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

com.ja.smarkdown.config.servletcontext.DefaultSmarkdownConfiguration Maven / Gradle / Ivy

Go to download

Reads Smarkdown configuration from the web.xml file. Uses a default configuration if no specific configuration is defined in web.xml.

There is a newer version: 0.8.0
Show newest version
package com.ja.smarkdown.config.servletcontext;

import static com.ja.smarkdown.model.config.Location.create;

import javax.enterprise.inject.Alternative;

import com.ja.smarkdown.model.config.SmarkdownConfiguration;

@Alternative
public class DefaultSmarkdownConfiguration extends SmarkdownConfiguration {

	public DefaultSmarkdownConfiguration() {
		super();
		getLocations().add(
				create(String.format("file://%s/smarkdown",
						System.getProperty("user.home"))));
		getLocations().add(create("web-inf:smarkdown/md"));
		getLocations().add(create("webapp:smarkdown/md"));
		getLocations().add(create("classpath:"));
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy