use of org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor in project tomee by apache.
the class StratocasterTest method addEnvEntry.
private static void addEnvEntry(WebAppDescriptor descriptor, String name, String type, String value) {
Node appNode = ((NodeDescriptor) descriptor).getRootNode();
appNode.createChild("/env-entry").createChild("env-entry-name").text(name).getParent().createChild("env-entry-type").text(type).getParent().createChild("env-entry-value").text(value);
}
use of org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor in project tomee by apache.
the class ServletEnvEntryInjectionTest method addEnvEntry.
private static void addEnvEntry(final WebAppDescriptor descriptor, final String name, String type, String value) {
Node appNode = ((NodeDescriptor) descriptor).getRootNode();
appNode.createChild("/env-entry").createChild("env-entry-name").text(name).getParent().createChild("env-entry-type").text(type).getParent().createChild("env-entry-value").text(value);
}
use of org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor in project tomee by apache.
the class ServletFilterEnvEntryInjectionTest method addEnvEntry.
private static void addEnvEntry(WebAppDescriptor descriptor, String name, String type, String value) {
Node appNode = ((NodeDescriptor) descriptor).getRootNode();
appNode.createChild("/env-entry").createChild("env-entry-name").text(name).getParent().createChild("env-entry-type").text(type).getParent().createChild("env-entry-value").text(value);
}
use of org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor in project tomee by apache.
the class ServletListenerEnvEntryInjectionTest method addEnvEntry.
private static void addEnvEntry(WebAppDescriptor descriptor, String name, String type, String value) {
Node appNode = ((NodeDescriptor) descriptor).getRootNode();
appNode.createChild("/env-entry").createChild("env-entry-name").text(name).getParent().createChild("env-entry-type").text(type).getParent().createChild("env-entry-value").text(value);
}
use of org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor in project tomee by apache.
the class SharedEnvironmentTest method addEnvEntry.
private static void addEnvEntry(WebAppDescriptor descriptor, String name, String type, String value) {
Node appNode = ((NodeDescriptor) descriptor).getRootNode();
appNode.createChild("/env-entry").createChild("env-entry-name").text(name).getParent().createChild("env-entry-type").text(type).getParent().createChild("env-entry-value").text(value);
}
Aggregations