blob: 383c8d808e7afb99794d163a0fff0558b20a03af [file] [log] [blame]
package brooklyn.entity.webapp;
import java.util.List;
import java.util.Map;
import brooklyn.config.ConfigKey;
import brooklyn.entity.java.UsesJava;
import brooklyn.event.basic.BasicConfigKey;
import brooklyn.util.flags.SetFromFlag;
public interface JavaWebAppService extends WebAppService, UsesJava {
@SetFromFlag("war")
public static final ConfigKey<String> ROOT_WAR = new BasicConfigKey<String>(
String.class, "wars.root", "WAR file to deploy as the ROOT, as URL (supporting file: and classpath: prefixes)");
@SetFromFlag("wars")
public static final ConfigKey<List<String>> NAMED_WARS = new BasicConfigKey(
List.class, "wars.named", "Archive files to deploy, as URL strings (supporting file: and classpath: prefixes); context (path in user-facing URL) will be inferred by name");
@SetFromFlag("warsByContext")
public static final ConfigKey<Map<String,String>> WARS_BY_CONTEXT = new BasicConfigKey(
Map.class, "wars.by.context", "Map of context keys (path in user-facing URL, typically without slashes) to archives (e.g. WARs by URL) to deploy, supporting file: and classpath: prefixes)");
}