Examples of StandardEnvironment


Examples of org.springframework.core.env.StandardEnvironment

  @Test
  public void configuresRepositoriesCorrectly() {

    JpaRepositoriesRegistrar registrar = new JpaRepositoriesRegistrar();
    registrar.setResourceLoader(new DefaultResourceLoader());
    registrar.setEnvironment(new StandardEnvironment());
    registrar.registerBeanDefinitions(metadata, registry);

    Iterable<String> names = Arrays.asList(registry.getBeanDefinitionNames());
    assertThat(names, hasItems("userRepository", "auditableUserRepository", "roleRepository"));
  }
View Full Code Here

Examples of org.springframework.core.env.StandardEnvironment

  public void test() {
    //ConfigurableApplicationContext parent = new GenericApplicationContext();
//    parent.refresh();

    ConfigurableApplicationContext child = new ClassPathXmlApplicationContext();
    child.setEnvironment(new StandardEnvironment());
    child.refresh();

    child.close();
//    parent.close();
View Full Code Here

Examples of spoon.support.StandardEnvironment

    private void doExecute(final int complianceLevel) throws Exception {

        getLog().info("Source compliance level: 1." + complianceLevel);
        getLog().info("Write processed sources to: " + outputDirectory.getAbsolutePath());

        final StandardEnvironment env = new StandardEnvironment();
        env.setVerbose(false);
        env.setDebug(false);
        env.setComplianceLevel(complianceLevel);
        final Factory factory = new Factory(new DefaultCoreFactory(), env);

        final Builder builder = factory.getBuilder();
        for (final File inputSource : inputSources) {
            getLog().info("Adding input source: " + inputSource.getPath());
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.