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

org.wildfly.extras.creaper.commands.web.DisableWebNatives Maven / Gradle / Ivy

There is a newer version: 2.0.3
Show newest version
package org.wildfly.extras.creaper.commands.web;

import org.wildfly.extras.creaper.commands.foundation.offline.xml.GroovyXmlTransform;
import org.wildfly.extras.creaper.commands.foundation.offline.xml.Subtree;
import org.wildfly.extras.creaper.core.CommandFailedException;
import org.wildfly.extras.creaper.core.offline.OfflineCommand;
import org.wildfly.extras.creaper.core.offline.OfflineCommandContext;

import java.io.IOException;

/**
 * Command which disables natives in the Web subsystem.
 *
 * 

{@code OnlineCommand} is not implemented as changing from natives to Java and back doesn't work * with the Web subsystem (restart is required). * See Red Hat Bugzilla 1115443 for details.

. */ public final class DisableWebNatives implements OfflineCommand { @Override public void apply(OfflineCommandContext ctx) throws CommandFailedException, IOException { GroovyXmlTransform disableNatives = GroovyXmlTransform .of(DisableWebNatives.class) .subtree("web", Subtree.subsystem("web")) .build(); ctx.client.apply(disableNatives); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy