Sha256: 10a58e40739b9246a57698587d78c2601b271553639d3de502e22d83b2ae877b

Contents?: true

Size: 503 Bytes

Versions: 13

Compression:

Stored size: 503 Bytes

Contents

package <%= managed_package %>;

import <%= gwt_rails_package %>.RestfulAction;

public abstract class RestfulPlace<T> extends ActivityPlace {

    public final RestfulAction action;

    private T resource;

    public RestfulPlace(RestfulAction restfulAction) {
        this.action = restfulAction;
    }

    public void setResource(T resource) {
        if (this.resource == null) {
            this.resource = resource;
        }
    }

    public T getResource() {
        return resource;
    }
}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
resty-generators-0.7.3 lib/generators/resty/setup/templates/RestfulPlace.java
resty-generators-0.7.2 lib/generators/resty/setup/templates/RestfulPlace.java
resty-generators-0.7.1 lib/generators/resty/setup/templates/RestfulPlace.java
resty-generators-0.7.0 lib/generators/resty/setup/templates/RestfulPlace.java
resty-generators-0.6.0 lib/generators/resty/setup/templates/RestfulPlace.java
resty-generators-0.5.3 lib/generators/resty/setup/templates/RestfulPlace.java
resty-generators-0.5.1 lib/generators/resty/setup/templates/RestfulPlace.java
resty-generators-0.5.0 lib/generators/resty/setup/templates/RestfulPlace.java
resty-generators-0.4.0 lib/generators/resty/setup/templates/RestfulPlace.java
resty-generators-0.3.3 lib/generators/resty/setup/templates/RestfulPlace.java
resty-generators-0.3.2 lib/generators/resty/setup/templates/RestfulPlace.java
resty-generators-0.3.1 lib/generators/resty/setup/templates/RestfulPlace.java
resty-generators-0.3.0 lib/generators/resty/setup/templates/RestfulPlace.java