org.jboss.as.console.client.core.DomainGateKeeper 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;
import com.gwtplatform.mvp.client.proxy.Gatekeeper;
import javax.inject.Inject;
import javax.inject.Singleton;
/**
* @author Heiko Braun
* @date 1/26/12
*/
@Singleton
public class DomainGateKeeper implements Gatekeeper {
private final BootstrapContext bootstrapContext;
@Inject
public DomainGateKeeper(final BootstrapContext bootstrapContext) {
this.bootstrapContext = bootstrapContext;
}
@Override
public boolean canReveal() {
return !bootstrapContext.isStandalone();
}
}