it.openutils.deployment.spring
Class DatabaseEnvironmentPropertyConfigurer
java.lang.Object
org.springframework.core.io.support.PropertiesLoaderSupport
org.springframework.beans.factory.config.PropertyResourceConfigurer
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
it.openutils.deployment.spring.EnvironmentPropertyConfigurer
it.openutils.deployment.spring.DatabaseEnvironmentPropertyConfigurer
- All Implemented Interfaces:
- java.util.EventListener, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor, org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered
public class DatabaseEnvironmentPropertyConfigurer
- extends EnvironmentPropertyConfigurer
- implements org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener
- Version:
- $Id: DatabaseEnvironmentPropertyConfigurer.java 2163 2010-03-19 22:24:28Z fgiust $
- Author:
- fgiust
| 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 |
| Methods inherited from class it.openutils.deployment.spring.EnvironmentPropertyConfigurer |
determineCandidateConstructors, getEarlyBeanReference, getProperty, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, postProcessPropertyValues, predictBeanType, setApplicationPropertyName, setExposeSystemProperties, setFileLocation, setInherit, setNullValue, setServerPropertyName |
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer |
parseStringValue, processProperties, resolvePlaceholder, resolvePlaceholder, resolveSystemProperty, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer |
convertProperties, convertPropertyValue, getOrder, 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 |
DatabaseEnvironmentPropertyConfigurer
public DatabaseEnvironmentPropertyConfigurer()
setSqlQuery
public void setSqlQuery(java.lang.String sqlQuery)
setDataSourceName
public void setDataSourceName(java.lang.String dataSourceName)
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
-
- Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware- Overrides:
setApplicationContext in class EnvironmentPropertyConfigurer
- Throws:
org.springframework.beans.BeansException
getProperties
public java.util.Properties getProperties()
- Get Spring Context proprieties.
- Overrides:
getProperties in class EnvironmentPropertyConfigurer
- Returns:
- A properties object containing all spring properties.
refresh
public void refresh()
- used to reload configuration code from db
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
-
- Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
throws org.springframework.beans.BeansException
-
- Specified by:
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor- Overrides:
postProcessBeanFactory in class EnvironmentPropertyConfigurer
- Throws:
org.springframework.beans.BeansException
Copyright © 2007-2010 Openmind. All Rights Reserved.