Package jodd.petite.config

Examples of jodd.petite.config.AutomagicPetiteConfigurator


  /**
   * Configures Petite container. By default scans the class path
   * for petite beans and registers them automagically.
   */
  protected void registerPetiteContainerBeans(PetiteContainer petiteContainer) {
    AutomagicPetiteConfigurator pcfg = new AutomagicPetiteConfigurator();
    appScanner.configure(pcfg);
    pcfg.configure(petiteContainer);
  }
View Full Code Here


   * {@link jodd.petite.config.AutomagicPetiteConfigurator auto-magic configuration}.
   */
  protected PetiteContainer providePetiteContainer() {
    PetiteContainer pc = createPetiteContainer();

    AutomagicPetiteConfigurator configurator = new AutomagicPetiteConfigurator();

    configurator.configure(pc);

    return pc;
  }
View Full Code Here

  }

  @Test
  public void testContainer() {
    PetiteContainer pc = new PetiteContainer();
    AutomagicPetiteConfigurator configurator = new AutomagicPetiteConfigurator();
    configurator.setExcludeAllEntries(true);
    configurator.setIncludedEntries("jodd.petite.*");
    configurator.setExcludedEntries("jodd.petite.data.*", "jodd.petite.tst3.*", "jodd.petite.tst.Ses");
    configurator.setExcludedEntries(
        "jodd.petite.data.*", "jodd.petite.tst3.*", "jodd.petite.tst.Ses", "*Public*", "*Secret*");
    configurator.configure(pc);

    assertEquals(1, pc.getTotalBeans());
    assertEquals(1, pc.getTotalScopes());
    assertEquals(0, Foo.instanceCounter);

View Full Code Here

TOP

Related Classes of jodd.petite.config.AutomagicPetiteConfigurator

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.