package examples.tutorial.weather8;
import juzu.impl.request.ControllerHandler;
import juzu.impl.request.ControlParameter;
import juzu.impl.request.PhaseParameter;
import juzu.impl.request.ContextualParameter;
import juzu.impl.request.BeanParameter;
import juzu.impl.common.Tools;
import java.util.Arrays;
import juzu.request.Phase;
import juzu.impl.plugin.controller.descriptor.ControllerDescriptor;
import javax.annotation.Generated;
import juzu.impl.common.Cardinality;
import juzu.impl.request.Request;
@Generated(value={})
public class Weather_ {
private static final Class<examples.tutorial.weather8.Weather> TYPE = examples.tutorial.weather8.Weather.class;
private static final ControllerHandler<Phase.View> method_0 = new ControllerHandler<Phase.View>("Weather.index",Phase.VIEW,TYPE,Tools.safeGetMethod(TYPE,"index"), Arrays.<ControlParameter>asList());
public static Phase.View.Dispatch index() { return Request.createViewDispatch(method_0); }
private static final ControllerHandler<Phase.Resource> method_1 = new ControllerHandler<Phase.Resource>("Weather.getFragment",Phase.RESOURCE,TYPE,Tools.safeGetMethod(TYPE,"getFragment",java.lang.String.class), Arrays.<ControlParameter>asList(new PhaseParameter("location",java.lang.String.class,java.lang.String.class,Cardinality.SINGLE,null)));
public static Phase.Resource.Dispatch getFragment(java.lang.String location) { return Request.createResourceDispatch(method_1,(Object)location); }
private static final ControllerHandler<Phase.Action> method_2 = new ControllerHandler<Phase.Action>("Weather.add",Phase.ACTION,TYPE,Tools.safeGetMethod(TYPE,"add",java.lang.String.class), Arrays.<ControlParameter>asList(new PhaseParameter("location",java.lang.String.class,java.lang.String.class,Cardinality.SINGLE,null)));
public static Phase.Action.Dispatch add(java.lang.String location) { return Request.createActionDispatch(method_2,(Object)location); }
private static final ControllerHandler<Phase.View> method_3 = new ControllerHandler<Phase.View>("Weather.index",Phase.VIEW,TYPE,Tools.safeGetMethod(TYPE,"index",java.lang.String.class), Arrays.<ControlParameter>asList(new PhaseParameter("location",java.lang.String.class,java.lang.String.class,Cardinality.SINGLE,null)));
public static Phase.View.Dispatch index(java.lang.String location) { return Request.createViewDispatch(method_3,(Object)location); }
public static final ControllerDescriptor DESCRIPTOR = new ControllerDescriptor(TYPE,Arrays.<ControllerHandler<?>>asList(method_0,method_1,method_2,method_3));
}
