Package jodd.props

Examples of jodd.props.Props


  /**
   * Creates new Props. Empty props will be ignored,
   * and missing macros will be resolved as empty string.
   */
  protected Props createProps() {
    Props props = new Props();
    props.setSkipEmptyProps(true);
    props.setIgnoreMissingMacros(true);
    return props;
  }
View Full Code Here


      log.info("Madvoc web application: " + webAppClass.getName());
    }

    // params
    if (paramsFiles != null) {
      Props params = loadMadvocParams(paramsFiles);
      webapp.defineParams(params);
    }

    // configure
    webapp.registerMadvocComponents();
View Full Code Here

      log.info("Madvoc web application: " + webAppClass.getName());
    }

    // params
    if (paramsFiles != null) {
      Props params = loadMadvocParams(paramsFiles);
      webapp.defineParams(params);
    }

    // configure
    webapp.registerMadvocComponents();
View Full Code Here

      appDir = "";
    }

    @Override
    protected void initProps() {
      appProps = new Props();

      appProps.setValue("scan.ignoreExceptions", "true");
      appProps.setValue("scan.includedEntries", "jodd.*,foo.*,bar.*");
      appProps.setValue("scan.includedJars", "xxx");
    }
View Full Code Here

    assertEquals(2, bd.properties.length);
  }

  @Test
  public void testProps() {
    Props props = new Props();
    props.load("pojoBean2.val2=123");
    props.load("pojoBean2.val1=\\\\${pojo}");

    assertEquals("123", props.getValue("pojoBean2.val2"));
    assertEquals("\\${pojo}", props.getValue("pojoBean2.val1"));

    PetiteContainer pc = new PetiteContainer();
    pc.registerPetiteBean(PojoBean2.class, null, null, null, false);
    pc.defineParameters(props);
View Full Code Here

TOP

Related Classes of jodd.props.Props

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.