Sha256: c855f18b5a7739232fe44e2d23424c837b42c099a76d0cc978a98b8f3f5d9baa
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
package <%= base_package %>; import <%= managed_package %>.ActivityFactory; import com.google.gwt.activity.shared.Activity; import com.google.gwt.activity.shared.ActivityMapper; import com.google.gwt.core.client.GWT; import com.google.gwt.place.shared.Place; import com.google.inject.Inject; import <%= gwt_rails_package %>.Notice; import <%= gwt_rails_package %>.places.RestfulPlace; public class ActivityPlaceActivityMapper implements ActivityMapper { protected final ActivityFactory factory; protected final Notice notice; @Inject public ActivityPlaceActivityMapper(ActivityFactory factory, Notice notice) { this.notice = notice; this.factory = factory; } @SuppressWarnings("unchecked") public Activity getActivity(Place place) { if (place instanceof RestfulPlace<?, ?>) { GWT.log(place.toString()); return ((RestfulPlace<?, ActivityFactory>) place).create(factory); } notice.warn("nothing to see"); return null; } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resty-generators-0.7.3 | lib/generators/resty/setup/templates/ActivityPlaceActivityMapper.java |