Examples of Controller


Examples of org.pdf4j.saxon.Controller

     * Construct a new context as a copy of another. The new context is effectively added
     * to the top of a stack, and contains a pointer to the previous context
     */

    public XPathContextMajor newContext() {
        Controller controller = new Controller(config);
        return controller.newXPathContext();
//        notAllowed();
//        return null;
    }
View Full Code Here

Examples of org.platformlayer.xaas.Controller

    String packagePrefix = myPackage.getName() + ".";
    if (!clazzPackage.getName().startsWith(packagePrefix)) {
      return null;
    }

    Controller modelAnnotation = clazz.getAnnotation(Controller.class);
    if (modelAnnotation == null) {
      return null;
    }

    return ModelClass.publicModel(this, clazz);
View Full Code Here

Examples of org.rhq.enterprise.client.Controller

            bindings.getProxyFactory().setValue(null);
        }

        //non-standard bindings for console
        bindings.put("configurationEditor", new ConfigurationEditor(client));
        bindings.put("rhq", new Controller(client));

        ScriptEngine engine = client.getScriptEngine();

        ScriptSourceProvider[] sourceProviders = ScriptSourceProviderFactory.get(null);
View Full Code Here

Examples of org.sonar.api.server.ws.WebService.Controller

      new QGatesSelectAction(qGates), new QGatesDeselectAction(qGates), new QGatesAppAction(qGates, mock(Periods.class), mock(I18n.class))));
  }

  @Test
  public void define_ws() throws Exception {
    Controller controller = tester.controller("api/qualitygates");
    assertThat(controller).isNotNull();
    assertThat(controller.path()).isEqualTo("api/qualitygates");
    assertThat(controller.description()).isNotEmpty();
    assertThat(controller.actions()).hasSize(15);

    Action list = controller.action("list");
    assertThat(list).isNotNull();
    assertThat(list.handler()).isNotNull();
    assertThat(list.since()).isEqualTo("4.3");
    assertThat(list.isPost()).isFalse();
    assertThat(list.isInternal()).isFalse();

    Action show = controller.action("show");
    assertThat(show).isNotNull();
    assertThat(show.handler()).isNotNull();
    assertThat(show.since()).isEqualTo("4.3");
    assertThat(show.isPost()).isFalse();
    assertThat(show.param("id")).isNotNull();
    assertThat(show.isInternal()).isFalse();

    Action create = controller.action("create");
    assertThat(create).isNotNull();
    assertThat(create.handler()).isNotNull();
    assertThat(create.since()).isEqualTo("4.3");
    assertThat(create.isPost()).isTrue();
    assertThat(create.param("name")).isNotNull();
    assertThat(create.isInternal()).isFalse();

    Action copy = controller.action("copy");
    assertThat(copy).isNotNull();
    assertThat(copy.handler()).isNotNull();
    assertThat(copy.since()).isEqualTo("4.3");
    assertThat(copy.isPost()).isTrue();
    assertThat(copy.param("id")).isNotNull();
    assertThat(copy.param("name")).isNotNull();
    assertThat(copy.isInternal()).isFalse();

    Action destroy = controller.action("destroy");
    assertThat(destroy).isNotNull();
    assertThat(destroy.handler()).isNotNull();
    assertThat(destroy.since()).isEqualTo("4.3");
    assertThat(destroy.isPost()).isTrue();
    assertThat(destroy.param("id")).isNotNull();
    assertThat(destroy.isInternal()).isFalse();

    Action rename = controller.action("rename");
    assertThat(rename).isNotNull();
    assertThat(rename.handler()).isNotNull();
    assertThat(rename.since()).isEqualTo("4.3");
    assertThat(rename.isPost()).isTrue();
    assertThat(rename.param("id")).isNotNull();
    assertThat(rename.param("name")).isNotNull();
    assertThat(rename.isInternal()).isFalse();

    Action setDefault = controller.action("set_as_default");
    assertThat(setDefault).isNotNull();
    assertThat(setDefault.handler()).isNotNull();
    assertThat(setDefault.since()).isEqualTo("4.3");
    assertThat(setDefault.isPost()).isTrue();
    assertThat(setDefault.param("id")).isNotNull();
    assertThat(setDefault.isInternal()).isFalse();

    Action unsetDefault = controller.action("unset_default");
    assertThat(unsetDefault).isNotNull();
    assertThat(unsetDefault.handler()).isNotNull();
    assertThat(unsetDefault.since()).isEqualTo("4.3");
    assertThat(unsetDefault.isPost()).isTrue();
    assertThat(unsetDefault.isInternal()).isFalse();

    Action createCondition = controller.action("create_condition");
    assertThat(createCondition).isNotNull();
    assertThat(createCondition.handler()).isNotNull();
    assertThat(createCondition.since()).isEqualTo("4.3");
    assertThat(createCondition.isPost()).isTrue();
    assertThat(createCondition.param("gateId")).isNotNull();
    assertThat(createCondition.param("metric")).isNotNull();
    assertThat(createCondition.param("op")).isNotNull();
    assertThat(createCondition.param("warning")).isNotNull();
    assertThat(createCondition.param("error")).isNotNull();
    assertThat(createCondition.param("period")).isNotNull();
    assertThat(createCondition.isInternal()).isFalse();

    Action updateCondition = controller.action("update_condition");
    assertThat(updateCondition).isNotNull();
    assertThat(updateCondition.handler()).isNotNull();
    assertThat(updateCondition.since()).isEqualTo("4.3");
    assertThat(updateCondition.isPost()).isTrue();
    assertThat(updateCondition.param("id")).isNotNull();
    assertThat(updateCondition.param("metric")).isNotNull();
    assertThat(updateCondition.param("op")).isNotNull();
    assertThat(updateCondition.param("warning")).isNotNull();
    assertThat(updateCondition.param("error")).isNotNull();
    assertThat(updateCondition.param("period")).isNotNull();
    assertThat(updateCondition.isInternal()).isFalse();

    Action deleteCondition = controller.action("delete_condition");
    assertThat(deleteCondition).isNotNull();
    assertThat(deleteCondition.handler()).isNotNull();
    assertThat(deleteCondition.since()).isEqualTo("4.3");
    assertThat(deleteCondition.isPost()).isTrue();
    assertThat(deleteCondition.param("id")).isNotNull();
    assertThat(deleteCondition.isInternal()).isFalse();

    Action appInit = controller.action("app");
    assertThat(appInit.isInternal()).isTrue();
  }
View Full Code Here

Examples of org.springframework.stereotype.Controller

      try {
        bean = applicationContext.getBean(beanName);
      } catch (Exception e) {
        continue;
      }
      Controller controllerAnn = bean.getClass().getAnnotation(Controller.class);
      if (controllerAnn != null) {
        bootstrapObject(beanName, bean, annotationClasses);
      }

    }
View Full Code Here

Examples of org.springframework.web.servlet.mvc.Controller

    protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {
        String path = request.getServletPath();
        String internalPath = path.replaceAll(xmlMarker, "");

        Controller controller = (Controller) getApplicationContext().getBean(internalPath);
        if (controller != null) {
                ModelAndView modelAndView = controller.handleRequest(request, response);
                if (modelAndView.getModel() != null) {
                    TransportableModel tm = new TransportableModel();
                    tm.putAll(modelAndView.getModel());
                    XStream x = new XStream();
                    x.toXML(tm, response.getWriter());
View Full Code Here

Examples of org.strecks.controller.annotation.Controller

    }
  }

  Class getControllerClass(Class actionClass)
  {
    @SuppressWarnings("unchecked")
    Controller controller = (Controller) actionClass.getAnnotation(Controller.class);

    Class controllerClass = null;

    if (controller == null)
    {
      // check for implicity controllers
      controllerClass = checkImplicitController(actionClass);

      if (controllerClass == null)
      {
        throw new ApplicationConfigurationException(actionClass.getName()
            + " is not a Struts Action subclass and does not have a " + Controller.class.getName()
            + " annotation");
      }
    }
    else
    {
      controllerClass = controller.name();
    }

    if (!ControllerAction.class.isAssignableFrom(controllerClass))
    {
      throw new ApplicationConfigurationException(actionClass.getName() + " has a controller class "
View Full Code Here

Examples of pl.edu.pw.elka.mmarkiew.controller.Controller

 
  public Main()
  {
    try
    {
      new Controller().start();
    }
    catch(Exception e)
    {
      e.printStackTrace();
    }
View Full Code Here

Examples of pl.eternalsh.simplecalc.controller.Controller

     *
     * @param args arguments passed in application call (unused)
     */
    public static void main(final String[] args)
    {
        Controller controller = new Controller();
        controller.runApplication();
    }
View Full Code Here

Examples of testGenerator.Controller

    /**
     * Default constructor.
     */
    public GUIController()
    {
        controller = new Controller(this);
        branchPathController = new BranchGraphController(this, controller);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.