xapi.gwtc.api.GwtcPropertiesBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xapi-gwt Show documentation
Show all versions of xapi-gwt Show documentation
This module exists solely to package all other gwt modules into a single
uber jar. This makes deploying to non-mavenized targets much easier.
Of course, you would be wise to inherit your dependencies individually;
the uber jar is intended for projects like collide,
which have complex configuration, and adding many jars would be a pain.
The newest version!
package xapi.gwtc.api;
import com.google.gwt.core.ext.TreeLogger.Type;
import xapi.gwtc.api.GwtcProperties;
@SuppressWarnings("all")
public class GwtcPropertiesBuilder {
private static final class ImmutableGwtcProperties implements GwtcProperties {
private final ObfuscationLevel obfuscationLevel;
private final Type logLevel;
public Class extends java.lang.annotation.Annotation> annotationType () {
return xapi.gwtc.api.GwtcProperties.class;
}
public final ObfuscationLevel obfuscationLevel () {
return obfuscationLevel;
}
public final Type logLevel () {
return logLevel;
}
private ImmutableGwtcProperties (ObfuscationLevel obfuscationLevel, Type logLevel) {
this.obfuscationLevel = obfuscationLevel;
this.logLevel = logLevel;
}
}
public static GwtcPropertiesBuilder buildGwtcProperties () {
return new GwtcPropertiesBuilder();
}
private ObfuscationLevel obfuscationLevel;
private Type logLevel;
public final ObfuscationLevel getObfuscationLevel () {
return obfuscationLevel;
}
public final GwtcPropertiesBuilder setObfuscationLevel (ObfuscationLevel obfuscationLevel) {
this.obfuscationLevel = obfuscationLevel;
return this;
}
public final Type getLogLevel () {
return logLevel;
}
public final GwtcPropertiesBuilder setLogLevel (Type logLevel) {
this.logLevel = logLevel;
return this;
}
private GwtcPropertiesBuilder () {
}
public GwtcProperties build () {
return new ImmutableGwtcProperties(obfuscationLevel, logLevel);
}
}