xapi.dev.model.ModelGeneratorContext 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.dev.model;
import xapi.platform.JrePlatform;
import xapi.platform.Platform;
@JrePlatform
public class ModelGeneratorContext {
private boolean isServer;//we do allow runtimes that are both server and client
private boolean isClient;
// stay non-null, thanks
private Platform platform = initPlatform();
public boolean isClient() {
return isClient;
}
protected Platform initPlatform() {
return ModelGeneratorContext.class.getAnnotation(Platform.class);
}
public boolean isServer() {
return isServer;
}
public void setServer(boolean isServer) {
this.isServer = isServer;
}
public Platform getPlatform() {
return platform;
}
public void setPlatform(Platform platform) {
this.platform = platform;
}
}