Examples of StandardEnvironment


Examples of org.araneaframework.core.StandardEnvironment

      }
           
      public Environment getEnvironment() {
        Map entries = new HashMap();
        entries.put("foo","barDefault");
        return new StandardEnvironment(super.getEnvironment(), entries);
      }
    };
    //XXX
    //widget.setChild(childWidget);
    widget._getComponent().init(MockUtil.getEnv());
View Full Code Here

Examples of org.araneaframework.core.StandardEnvironment

    httpSession = new MockHttpSession();
   
    Map map = new HashMap();
    map.put(HttpSession.class, httpSession);
   
    MockLifeCycle.begin(service, new StandardEnvironment(null, map));
   
    req = new MockHttpServletRequest();
    res = new MockHttpServletResponse();
   
    input = new StandardServletInputData(req);
View Full Code Here

Examples of org.araneaframework.core.StandardEnvironment

  public void setUp() throws Exception {   
    topWidget = new MockCallableWidget();
    childWidget = new MockCallableWidget();
    childWidget2 = new MockCallableWidget();
   
    env = new StandardEnvironment(null, null);
   
    stackWidget = new StandardFlowContainerWidget(topWidget);
    stackWidget._getComponent().init(env);
  }
View Full Code Here

Examples of org.araneaframework.core.StandardEnvironment

    transHelper = new StandardTransactionHelper();
   
    Map entries = new HashMap();
    entries.put(TransactionContext.class, this);
   
    childWidget._getComponent().init(new StandardEnvironment(getChildWidgetEnvironment(), entries));
   
    log.debug("Transactional filter widget initialized.");
  }
View Full Code Here

Examples of org.springframework.core.env.StandardEnvironment

  @Override
  public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
    // this enables resolving from xml
    log.info("Adding PropertyEditorRegistrar");
    beanFactory.addPropertyEditorRegistrar(new ResourceEditorRegistrar(loader, new StandardEnvironment()));
  }
View Full Code Here

Examples of org.springframework.core.env.StandardEnvironment

    if (environment != null) {
      return environment;
    }

    return resourceLoader instanceof EnvironmentCapable ? ((EnvironmentCapable) resourceLoader).getEnvironment()
        : new StandardEnvironment();
  }
View Full Code Here

Examples of org.springframework.core.env.StandardEnvironment

  @Before
  public void setUp() {

    AnnotationMetadata annotationMetadata = new StandardAnnotationMetadata(SampleConfiguration.class, true);
    environment = new StandardEnvironment();
    resourceLoader = new DefaultResourceLoader();
    source = new AnnotationRepositoryConfigurationSource(annotationMetadata, EnableRepositories.class, resourceLoader,
        environment);
  }
View Full Code Here

Examples of org.springframework.core.env.StandardEnvironment

  private final Set<CdiRepositoryBean<?>> eagerRepositories = new HashSet<CdiRepositoryBean<?>>();
  private final CustomRepositoryImplementationDetector customImplementationDetector;

  protected CdiRepositoryExtensionSupport() {

    Environment environment = new StandardEnvironment();
    ResourceLoader resourceLoader = new PathMatchingResourcePatternResolver(getClass().getClassLoader());
    MetadataReaderFactory metadataReaderFactory = new CachingMetadataReaderFactory(resourceLoader);

    this.customImplementationDetector = new CustomRepositoryImplementationDetector(metadataReaderFactory, environment,
        resourceLoader);
View Full Code Here

Examples of org.springframework.core.env.StandardEnvironment

  DummyRegistrar registrar;

  @Before
  public void setUp() {

    environment = new StandardEnvironment();

    registrar = new DummyRegistrar();
    registrar.setEnvironment(environment);
  }
View Full Code Here

Examples of org.springframework.core.env.StandardEnvironment

   * @param ctx
   * @param customer
   */
  private void setEnvironmentForCustomer(ConfigurableApplicationContext ctx,
      String customer) {
    StandardEnvironment env = new StandardEnvironment();
    Properties props = new Properties();
    // populate properties for customer
    props.setProperty("host", "host.for." + customer);
    props.setProperty("user", "user");
    props.setProperty("password", "password");
    props.setProperty("remote.directory", "/tmp");
    PropertiesPropertySource pps = new PropertiesPropertySource("ftpprops", props);
    env.getPropertySources().addLast(pps);
    ctx.setEnvironment(env);
  }
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.