Examples of MadvocConfig


Examples of jodd.madvoc.component.MadvocConfig

  public void testMacrosDups() {
    WebApplication webapp = new WebApplication(true);
    webapp.registerMadvocComponents();
    ActionsManager actionsManager = webapp.getComponent(ActionsManager.class);

    MadvocConfig madvocConfig = webapp.getComponent(MadvocConfig.class);
    madvocConfig.getRootPackages().addRootPackageOf(this.getClass());
    madvocConfig.setPathMacroClass(RegExpPathMacros.class);

    actionsManager.register(ReAction.class, "duplo1");
    actionsManager.register(ReAction.class, "duplo2");

    ActionConfig cfg = actionsManager.lookup("/re/duplo/123", "GET");
View Full Code Here

Examples of jodd.madvoc.component.MadvocConfig

  @Test
  public void testMarkerClass() {
    WebApplication webapp = new WebApplication(true);
    webapp.registerMadvocComponents();
    ActionMethodParser actionMethodParser = webapp.getComponent(ActionMethodParser.class);
    MadvocConfig madvocConfig = webapp.getComponent(MadvocConfig.class);
    RootPackages rootPackages = madvocConfig.getRootPackages();

    String thisPackageName = this.getClass().getPackage().getName();

    assertNull(rootPackages.getPackageActionPath(thisPackageName + ".tst3"));
    ActionConfig cfg = parse(actionMethodParser, "tst3.JohnAction#hello");
View Full Code Here

Examples of jodd.madvoc.component.MadvocConfig

  @Test
  public void testZqq() {
    WebApplication webapp = new WebApplication(true);
    webapp.registerMadvocComponents();
    ActionsManager actionsManager = webapp.getComponent(ActionsManager.class);
    MadvocConfig madvocConfig = webapp.getComponent(MadvocConfig.class);
    madvocConfig.getRootPackages().addRootPackageOf(this.getClass());

    actionsManager.register(ReAction.class, "zqq1");
    actionsManager.register(ReAction.class, "zqq2");

    ActionConfig cfg = actionsManager.lookup("/config/dba.delete_multi", "GET");
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.