ch.elca.el4j.core.config
Class JndiPropertyPlaceholderConfigurer

java.lang.Object
  extended by org.springframework.core.io.support.PropertiesLoaderSupport
      extended by org.springframework.beans.factory.config.PropertyResourceConfigurer
          extended by org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
              extended by ch.elca.el4j.core.config.JndiPropertyPlaceholderConfigurer
All Implemented Interfaces:
BeanFactoryAware, BeanNameAware, BeanFactoryPostProcessor, Ordered, PriorityOrdered

public class JndiPropertyPlaceholderConfigurer
extends PropertyPlaceholderConfigurer

This subclass of PropertyPlaceholderConfigurer acts a bit like ServletContextPropertyPlaceholderConfigurer but searches for JNDI entries instead. This allows to configure an application more easily at deployment time through the container's admin console for instance.

Author:
Sylvain Laurent (SLA), Andreas Bur (ABU)
See Also:
JndiPropertyOverrideConfigurer
File-location:
JndiPropertyPlaceholderConfigurer
Last check-in date:
2009-08-04 15:13:46 +0200 (Di, 04. Aug 2009) by swismer for revision 3879

Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE
 
Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport
logger, XML_FILE_EXTENSION
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
JndiPropertyPlaceholderConfigurer()
           
 
Method Summary
 JndiConfigurationHelper getJndiPropertyConfigurationHelper()
           
protected  String resolvePlaceholder(String placeholder, Properties props)
          
 void setJndiPropertyConfigurationHelper(JndiConfigurationHelper jndiPropertyConfigurationHelper)
          Sets the JNDI configuration helper.
 
Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
parseStringValue, processProperties, resolvePlaceholder, resolveSystemProperty, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName, setValueSeparator
 
Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer
convertProperties, convertProperty, convertPropertyValue, getOrder, postProcessBeanFactory, setOrder
 
Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiPropertyPlaceholderConfigurer

public JndiPropertyPlaceholderConfigurer()
Method Detail

getJndiPropertyConfigurationHelper

public JndiConfigurationHelper getJndiPropertyConfigurationHelper()
Returns:
Returns the JNDI configuration helper.

setJndiPropertyConfigurationHelper

public void setJndiPropertyConfigurationHelper(JndiConfigurationHelper jndiPropertyConfigurationHelper)
Sets the JNDI configuration helper. Default is JndiConfigurationHelper.

Parameters:
jndiPropertyConfigurationHelper - A JNDI configuration helper.

resolvePlaceholder

protected String resolvePlaceholder(String placeholder,
                                    Properties props)

Overrides:
resolvePlaceholder in class PropertyPlaceholderConfigurer


Copyright © 2005-2011 ELCA. All Rights Reserved.