xapi.gwtc.api.GwtcBuilder 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 xapi.annotation.common.Property;
import xapi.annotation.compile.Dependency;
import xapi.annotation.compile.Resource;
import xapi.annotation.ui.UiTemplate;
import xapi.gwtc.api.Gwtc;
@SuppressWarnings("all")
public class GwtcBuilder {
private static final class ImmutableGwtc implements Gwtc {
private final Gwtc.CompileMode compileMode;
private final Property[] propertiesSystem;
private final Property[] propertiesGwt;
private final Property[] propertiesGwtConfiguration;
private final GwtcProperties[] propertiesLaunch;
private final Resource[] includeGwtXml;
private final String[] includeSource;
private final Gwtc.IsolationMode isolationMode;
private final UiTemplate[] includeHostHtml;
private final Dependency[] dependencies;
private final Gwtc.AncestorMode[] inheritanceMode;
private final boolean debug;
public Class extends java.lang.annotation.Annotation> annotationType () {
return xapi.gwtc.api.Gwtc.class;
}
public final Gwtc.CompileMode compileMode () {
return compileMode;
}
public final Property[] propertiesSystem () {
return propertiesSystem;
}
public final Property[] propertiesGwt () {
return propertiesGwt;
}
public final Property[] propertiesGwtConfiguration () {
return propertiesGwtConfiguration;
}
public final GwtcProperties[] propertiesLaunch () {
return propertiesLaunch;
}
public final Resource[] includeGwtXml () {
return includeGwtXml;
}
public final String[] includeSource () {
return includeSource;
}
public final Gwtc.IsolationMode isolationMode () {
return isolationMode;
}
public final UiTemplate[] includeHostHtml () {
return includeHostHtml;
}
public final Dependency[] dependencies () {
return dependencies;
}
public final Gwtc.AncestorMode[] inheritanceMode () {
return inheritanceMode;
}
public final boolean debug () {
return debug;
}
private ImmutableGwtc (Gwtc.CompileMode compileMode, Property[] propertiesSystem, Property[] propertiesGwt, Property[] propertiesGwtConfiguration, GwtcProperties[] propertiesLaunch, Resource[] includeGwtXml, String[] includeSource, Gwtc.IsolationMode isolationMode, UiTemplate[] includeHostHtml, Dependency[] dependencies, Gwtc.AncestorMode[] inheritanceMode, boolean debug) {
this.compileMode = compileMode;
this.propertiesSystem = propertiesSystem;
this.propertiesGwt = propertiesGwt;
this.propertiesGwtConfiguration = propertiesGwtConfiguration;
this.propertiesLaunch = propertiesLaunch;
this.includeGwtXml = includeGwtXml;
this.includeSource = includeSource;
this.isolationMode = isolationMode;
this.includeHostHtml = includeHostHtml;
this.dependencies = dependencies;
this.inheritanceMode = inheritanceMode;
this.debug = debug;
}
}
public static GwtcBuilder buildGwtc () {
return new GwtcBuilder();
}
private Gwtc.CompileMode compileMode;
private Property[] propertiesSystem;
private Property[] propertiesGwt;
private Property[] propertiesGwtConfiguration;
private GwtcProperties[] propertiesLaunch;
private Resource[] includeGwtXml;
private String[] includeSource;
private Gwtc.IsolationMode isolationMode;
private UiTemplate[] includeHostHtml;
private Dependency[] dependencies;
private Gwtc.AncestorMode[] inheritanceMode;
private boolean debug;
public final Gwtc.CompileMode getCompileMode () {
return compileMode;
}
public final GwtcBuilder setCompileMode (Gwtc.CompileMode compileMode) {
this.compileMode = compileMode;
return this;
}
public final Property[] getPropertiesSystem () {
return propertiesSystem;
}
public final GwtcBuilder setPropertiesSystem (Property[] propertiesSystem) {
this.propertiesSystem = propertiesSystem;
return this;
}
public final Property[] getPropertiesGwt () {
return propertiesGwt;
}
public final GwtcBuilder setPropertiesGwt (Property[] propertiesGwt) {
this.propertiesGwt = propertiesGwt;
return this;
}
public final Property[] getPropertiesGwtConfiguration () {
return propertiesGwtConfiguration;
}
public final GwtcBuilder setPropertiesGwtConfiguration (Property[] propertiesGwtConfiguration) {
this.propertiesGwtConfiguration = propertiesGwtConfiguration;
return this;
}
public final GwtcProperties[] getPropertiesLaunch () {
return propertiesLaunch;
}
public final GwtcBuilder setPropertiesLaunch (GwtcProperties[] propertiesLaunch) {
this.propertiesLaunch = propertiesLaunch;
return this;
}
public final Resource[] getIncludeGwtXml () {
return includeGwtXml;
}
public final GwtcBuilder setIncludeGwtXml (Resource[] includeGwtXml) {
this.includeGwtXml = includeGwtXml;
return this;
}
public final String[] getIncludeSource () {
return includeSource;
}
public final GwtcBuilder setIncludeSource (String[] includeSource) {
this.includeSource = includeSource;
return this;
}
public final Gwtc.IsolationMode getIsolationMode () {
return isolationMode;
}
public final GwtcBuilder setIsolationMode (Gwtc.IsolationMode isolationMode) {
this.isolationMode = isolationMode;
return this;
}
public final UiTemplate[] getIncludeHostHtml () {
return includeHostHtml;
}
public final GwtcBuilder setIncludeHostHtml (UiTemplate[] includeHostHtml) {
this.includeHostHtml = includeHostHtml;
return this;
}
public final Dependency[] getDependencies () {
return dependencies;
}
public final GwtcBuilder setDependencies (Dependency[] dependencies) {
this.dependencies = dependencies;
return this;
}
public final Gwtc.AncestorMode[] getInheritanceMode () {
return inheritanceMode;
}
public final GwtcBuilder setInheritanceMode (Gwtc.AncestorMode[] inheritanceMode) {
this.inheritanceMode = inheritanceMode;
return this;
}
public final boolean isDebug () {
return debug;
}
public final GwtcBuilder setDebug (boolean debug) {
this.debug = debug;
return this;
}
private GwtcBuilder () {
}
public Gwtc build () {
return new ImmutableGwtc(compileMode, propertiesSystem, propertiesGwt, propertiesGwtConfiguration, propertiesLaunch, includeGwtXml, includeSource, isolationMode, includeHostHtml, dependencies, inheritanceMode, debug);
}
}