Package jodd.madvoc

Examples of jodd.madvoc.ActionConfig


    actionsManager.register(FooAction.class, "one", new ActionDef("/${one}"));
    actionsManager.register(FooAction.class, "one", new ActionDef("/dummy"));    // no macro
    actionsManager.register(FooAction.class, "two", new ActionDef("/${two}/${three}"));
    actionsManager.register(FooAction.class, "three", new ActionDef("/life/${three}"));

    ActionConfig actionConfig = actionsManager.lookup("/foo", null);
    assertEquals("one", actionConfig.actionClassMethod.getName());

     actionConfig = actionsManager.lookup("/scott/ramonna", null);
    assertEquals("two", actionConfig.actionClassMethod.getName());
View Full Code Here


    MadvocConfig madvocConfig = webapp.getComponent(MadvocConfig.class);
    madvocConfig.setPathMacroClass(RegExpPathMacros.class);

    actionsManager.register(FooAction.class, "one", new ActionDef("/${one:[ab]+}"));

    ActionConfig actionConfig = actionsManager.lookup("/a", null);
    assertNotNull(actionConfig);

    actionConfig = actionsManager.lookup("/ac", null);
    assertNull(actionConfig);
  }
View Full Code Here

    MadvocConfig madvocConfig = webapp.getComponent(MadvocConfig.class);
    madvocConfig.setPathMacroClass(WildcardPathMacros.class);

    actionsManager.register(FooAction.class, "one", new ActionDef("/${one:a?a}"));

    ActionConfig actionConfig = actionsManager.lookup("/aaa", null);
    assertNotNull(actionConfig);

    actionConfig = actionsManager.lookup("/aab", null);
    assertNull(actionConfig);
  }
View Full Code Here

      }
      else {
        actionDef = new ActionDef(actionPath, method);
      }

      ActionConfig actionConfig =
          actionMethodParser.createActionConfig(
              actionClass, actionClassMethod,
              actionResult,
              actionFilterInstances, actionInterceptorInstances,
              actionDef, async);
View Full Code Here

TOP

Related Classes of jodd.madvoc.ActionConfig

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.