org.jboss.as.console.client.core.bootstrap.ChoseProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of switchyard-console-as7-core
Show all versions of switchyard-console-as7-core
Bundles the core AS7 console as a GWT module. Includes minor customizations to support extensions.
package org.jboss.as.console.client.core.bootstrap;
import com.google.gwt.user.client.rpc.AsyncCallback;
import org.jboss.as.console.client.core.BootstrapContext;
import org.jboss.as.console.client.shared.dispatch.AsyncCommand;
import org.jboss.as.console.client.shared.dispatch.ResponseProcessorFactory;
/**
* @author Heiko Braun
* @date 1/17/12
*/
public class ChoseProcessor implements AsyncCommand{
private BootstrapContext bootstrap;
public ChoseProcessor(BootstrapContext bootstrapContext) {
this.bootstrap = bootstrapContext;
}
@Override
public void execute(AsyncCallback callback) {
ResponseProcessorFactory.INSTANCE.bootstrap(bootstrap.isStandalone());
callback.onSuccess(Boolean.TRUE);
}
}