Package com.xebialabs.deployit.spring
Class HoconPropertySourceFactory
- java.lang.Object
-
- com.xebialabs.deployit.spring.HoconPropertySourceFactory
-
- All Implemented Interfaces:
org.springframework.core.io.support.PropertySourceFactory
public class HoconPropertySourceFactory extends java.lang.Object implements org.springframework.core.io.support.PropertySourceFactoryMake Hocon configuration files usable from spring context/wiring/autowiring. Usage:{@code
-
-
Constructor Summary
Constructors Constructor Description HoconPropertySourceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.core.env.PropertySource<?>createPropertySource(java.lang.String name, org.springframework.core.io.support.EncodedResource resource)protected java.lang.StringgetName(com.typesafe.config.Config config)
-
-
-
Method Detail
-
getName
protected java.lang.String getName(com.typesafe.config.Config config)
-
createPropertySource
public org.springframework.core.env.PropertySource<?> createPropertySource(java.lang.String name, org.springframework.core.io.support.EncodedResource resource) throws java.io.IOException- Specified by:
createPropertySourcein interfaceorg.springframework.core.io.support.PropertySourceFactory- Throws:
java.io.IOException
-
-