Package juzu.impl.plugin.controller.metamodel

Examples of juzu.impl.plugin.controller.metamodel.ControllersMetaModel


  @Override
  public void postProcessEvents(ApplicationMetaModel metaModel) {
    ElementHandle.Package packageHandle = metaModel.getHandle();
    JSON config = enableMap.get(packageHandle);
    if (config != null) {
      ControllersMetaModel controllersModel = metaModel.getChild(ControllersMetaModel.KEY);

      for (ControllerMetaModel controller : controllersModel) {
        Map<AnnotationKey, AnnotationState> annotations = controllers.get(controller.getHandle());
        if (annotations != null) {
          JSON controllerJSON = new JSON();
View Full Code Here


  @Override
  public void postProcessEvents(ApplicationMetaModel metaModel) {
    RouterMetaModel router = getRoutes(metaModel, false);
    if (router != null) {
      router.routes.clear();
      ControllersMetaModel controllers = metaModel.getChild(ControllersMetaModel.KEY);
      if (controllers != null) {
        for (ControllerMetaModel controller : controllers) {
          for (HandlerMetaModel method : controller) {
            AnnotationState annotation = router.annotations.get(method.getMethod());
            if (annotation != null) {
View Full Code Here

TOP

Related Classes of juzu.impl.plugin.controller.metamodel.ControllersMetaModel

Copyright © 2018 www.massapicom. 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.