Package org.impalaframework.config

Examples of org.impalaframework.config.PropertySource


      this.invalidate();
    }
  }

  boolean getPreserveSession() {
    final PropertySource propertySource = PropertySourceHolder.getInstance().getPropertySource();
    if (propertySource == null) return true;
    BooleanPropertyValue preserveSessionOnReloadFailure = new BooleanPropertyValue(propertySource, WebBootstrapProperties.PRESERVE_SESSION_ON_RELOAD_FAILURE, true);
   
    final boolean preserveSession = preserveSessionOnReloadFailure.getValue();
    return preserveSession;
View Full Code Here


        assertTrue(propertySources.get(3) instanceof ServletContextPropertySource);
    }
   
    public void testAddLocations() throws Exception {
        final ContextLocationResolver resolverDelegate = createMock(ContextLocationResolver.class);
        final PropertySource source = createMock(PropertySource.class);
       
        ServletContextLocationsRetriever resolver = new ServletContextLocationsRetriever(servletContext, resolverDelegate, propertiesLoader) {

            @Override
            protected Properties getProperties() {
View Full Code Here

            this.invalidate();
        }
    }

    boolean getPreserveSession() {
        final PropertySource propertySource = PropertySourceHolder.getInstance().getPropertySource();
        if (propertySource == null) return true;
        BooleanPropertyValue preserveSessionOnReloadFailure = new BooleanPropertyValue(propertySource, WebBootstrapProperties.PRESERVE_SESSION_ON_RELOAD_FAILURE, true);
       
        final boolean preserveSession = preserveSessionOnReloadFailure.getValue();
        return preserveSession;
View Full Code Here

    /**
     * Returns {@link Properties} instance held by {@link Properties} holder.
     * Otherwise, returns empty {@link Properties} instance.
     */
    public Object getObject() throws Exception {
        PropertySource source = PropertySourceHolder.getInstance().getPropertySource();
       
        if (source != null) {  
            if (logger.isDebugEnabled()) {
                logger.debug("Returning PropertySource bound to PropertySourceHolder singleton: " + source);
            }
View Full Code Here

            this.invalidate();
        }
    }

    boolean getPreserveSession() {
        final PropertySource propertySource = PropertySourceHolder.getInstance().getPropertySource();
        if (propertySource == null) return true;
        BooleanPropertyValue preserveSessionOnReloadFailure = new BooleanPropertyValue(propertySource, WebBootstrapProperties.PRESERVE_SESSION_ON_RELOAD_FAILURE, true);
       
        final boolean preserveSession = preserveSessionOnReloadFailure.getValue();
        return preserveSession;
View Full Code Here

  /**
   * Returns {@link Properties} instance held by {@link Properties} holder.
   * Otherwise, returns empty {@link Properties} instance.
   */
  public Object getObject() throws Exception {
    PropertySource source = PropertySourceHolder.getInstance().getPropertySource();
   
    if (source != null) { 
      if (logger.isDebugEnabled()) {
        logger.debug("Returning PropertySource bound to PropertySourceHolder singleton: " + source);
      }
View Full Code Here

    /**
     * Returns {@link Properties} instance held by {@link Properties} holder.
     * Otherwise, returns empty {@link Properties} instance.
     */
    public Object getObject() throws Exception {
        PropertySource source = PropertySourceHolder.getInstance().getPropertySource();
       
        if (source != null) {  
            if (logger.isDebugEnabled()) {
                logger.debug("Returning PropertySource bound to PropertySourceHolder singleton: " + source);
            }
View Full Code Here

      this.invalidate();
    }
  }

  boolean getPreserveSession() {
    final PropertySource propertySource = PropertySourceHolder.getInstance().getPropertySource();
    if (propertySource == null) return true;
    BooleanPropertyValue preserveSessionOnReloadFailure = new BooleanPropertyValue(propertySource, WebBootstrapProperties.PRESERVE_SESSION_ON_RELOAD_FAILURE, true);
   
    final boolean preserveSession = preserveSessionOnReloadFailure.getValue();
    return preserveSession;
View Full Code Here

    /**
     * Returns {@link Properties} instance held by {@link Properties} holder.
     * Otherwise, returns empty {@link Properties} instance.
     */
    public PropertySource getObject() throws Exception {
        PropertySource source = PropertySourceHolder.getInstance().getPropertySource();
       
        if (source != null) {  
            if (logger.isDebugEnabled()) {
                logger.debug("Returning PropertySource bound to PropertySourceHolder singleton: " + source);
            }
View Full Code Here

   
   
    public void testGetAttributeWrappingWithSessionNoPreserved() {
        Properties properties = new Properties();
        properties.setProperty(WebBootstrapProperties.PRESERVE_SESSION_ON_RELOAD_FAILURE, "false");
        PropertySource source = new StaticPropertiesPropertySource(properties);
       
        PropertySourceHolder.getInstance().setPropertySource(source);
       
        session = createMock(HttpSession.class);
        SerializableValueHolder valueHolder = new SerializableValueHolder();
View Full Code Here

TOP

Related Classes of org.impalaframework.config.PropertySource

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.