package examples.tutorial.weather6;
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.weather6.Weather> TYPE = examples.tutorial.weather6.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.View> method_1 = 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_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); }
public static final ControllerDescriptor DESCRIPTOR = new ControllerDescriptor(TYPE,Arrays.<ControllerHandler<?>>asList(method_0,method_1,method_2));
}
