Package com.poscoict.glueframework.bean
Class GluePropertySourcesPlaceholderConfigurer
java.lang.Object
org.springframework.core.io.support.PropertiesLoaderSupport
org.springframework.beans.factory.config.PropertyResourceConfigurer
org.springframework.beans.factory.config.PlaceholderConfigurerSupport
org.springframework.context.support.PropertySourcesPlaceholderConfigurer
com.poscoict.glueframework.bean.GluePropertySourcesPlaceholderConfigurer
- All Implemented Interfaces:
Aware,BeanFactoryAware,BeanNameAware,BeanFactoryPostProcessor,EnvironmentAware,Ordered,PriorityOrdered
GluePropertySourcesPlaceholderConfigurer.
GluePropertySourcesPlaceholderConfigurer 는 PropertySourcesPlaceholderConfigurer 을 확장한 클래스입니다( Spring 5.2.0 ).
※ 사용 범위 안내 (2026-06-16): 이 클래스는 레거시(XML/외장 WAS) 환경 전용이다.
Spring Boot 환경에서는 이 클래스를 빈으로 등록하지 말 것 — 빈 생성(BeanFactoryPostProcessor) 단계에
살아있는 Environment를 변형하여 application.properties의 표준 설정(server.port 등)을 무력화시키는
문제가 있다. Boot에서는 glue.properties 주입을
GlueEnvironmentPostProcessor 가 담당한다.
Bean Property
- keyFile : (선택) keyFile 이 존재할 경우, 암호화된 property 는 복호화함.
예제
사용 예# 1
<bean class="com.poscoict.glueframework.bean.GluePropertySourcesPlaceholderConfigurer">
<property name="keyFile" value="file:${CONFIG_PATH}/glue.cipher"></property>
<property name="locations">
<list>
<value>file:${CONFIG_PATH}/glue.properties</value>
</list>
</property>
</bean>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassProperty의 문자열을 resolver합니다.class암호화된 문자열(property)인지 확인해서 복호화하는 서비스입니다. -
Field Summary
Fields inherited from class org.springframework.context.support.PropertySourcesPlaceholderConfigurer
ENVIRONMENT_PROPERTIES_PROPERTY_SOURCE_NAME, LOCAL_PROPERTIES_PROPERTY_SOURCE_NAMEFields inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport
DEFAULT_ESCAPE_CHARACTER, DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, escapeCharacter, ignoreUnresolvablePlaceholders, nullValue, placeholderPrefix, placeholderSuffix, trimValues, valueSeparatorFields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport
localOverride, localPropertiesFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprocessProperties(ConfigurableListableBeanFactory beanFactoryToProcess, ConfigurablePropertyResolver propertyResolver) voidsetEnvironment(Environment environment) voidsetKeyFile(Resource keyFile) 암호화 사용할 경우, keyFile 설정Methods inherited from class org.springframework.context.support.PropertySourcesPlaceholderConfigurer
createPropertyResolver, getAppliedPropertySources, postProcessBeanFactory, processProperties, setPropertySourcesMethods inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport
doProcessProperties, setBeanFactory, setBeanName, setEscapeCharacter, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setTrimValues, setValueSeparatorMethods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer
convertProperties, convertProperty, convertPropertyValue, getOrder, setOrderMethods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister
-
Constructor Details
-
GluePropertySourcesPlaceholderConfigurer
public GluePropertySourcesPlaceholderConfigurer()
-
-
Method Details
-
setKeyFile
암호화 사용할 경우, keyFile 설정- Parameters:
keyFile- 복호화 keyfile
-
setEnvironment
- Specified by:
setEnvironmentin interfaceEnvironmentAware- Overrides:
setEnvironmentin classPropertySourcesPlaceholderConfigurer
-
processProperties
protected void processProperties(ConfigurableListableBeanFactory beanFactoryToProcess, ConfigurablePropertyResolver propertyResolver) throws BeansException - Overrides:
processPropertiesin classPropertySourcesPlaceholderConfigurer- Throws:
BeansException
-