|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.core.io.support.PropertiesLoaderSupport
org.springframework.beans.factory.config.PropertyResourceConfigurer
org.springframework.beans.factory.config.PlaceholderConfigurerSupport
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
org.constretto.spring.ConstrettoPropertyPlaceholderConfigurer
public class ConstrettoPropertyPlaceholderConfigurer
An adaption of the spring framework PropertyPlaceholderConfigurer class, using an implementation of the
ConstrettoConfiguration interface to resolve keys
<bean class="org.constretto.spring.ConstrettoPropertyPlaceholderConfigurer">
<constructor-arg ref="someProvider" />
</bean>
<bean id="myBean" class="com.example.MyClass">
<property name="myProperty" value="${propertyKey}" />
</bean>
Note : The provider property of the placeholder configurer are marked as @Autowired, and can be autowired in a
annotation config application context.
ConstrettoConfiguration,
PropertyPlaceholderConfigurer| Field Summary |
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer |
|---|
SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
| Fields inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport |
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, ignoreUnresolvablePlaceholders, nullValue, placeholderPrefix, placeholderSuffix, valueSeparator |
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport |
|---|
localOverride, localProperties, logger |
| Fields inherited from interface org.springframework.core.Ordered |
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Constructor Summary | |
|---|---|
ConstrettoPropertyPlaceholderConfigurer(ConstrettoConfiguration configuration)
|
|
| Method Summary | |
|---|---|
protected String |
resolvePlaceholder(String placeholder,
Properties props,
int systemPropertiesMode)
|
void |
setIgnoreUnresolvablePlaceholders(boolean ignoreUnresolvablePlaceholders)
|
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer |
|---|
parseStringValue, processProperties, resolvePlaceholder, resolveSystemProperty, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
| Methods inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport |
|---|
doProcessProperties, setBeanFactory, setBeanName, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, 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 |
|---|
public ConstrettoPropertyPlaceholderConfigurer(ConstrettoConfiguration configuration)
| Method Detail |
|---|
public void setIgnoreUnresolvablePlaceholders(boolean ignoreUnresolvablePlaceholders)
setIgnoreUnresolvablePlaceholders in class PlaceholderConfigurerSupport
protected String resolvePlaceholder(String placeholder,
Properties props,
int systemPropertiesMode)
resolvePlaceholder in class PropertyPlaceholderConfigurer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||