public class GitconPropertiesBeanFactory extends Object implements org.springframework.beans.factory.FactoryBean<Properties>
BeanFactory
that creates Properties
based on a file
in given ResourceRepository
. The properties file is populated using
ExtendedProperties
, where file inclusion and variable replacement are
supported.Constructor and Description |
---|
GitconPropertiesBeanFactory(ResourceRepository repo,
String filePath) |
Modifier and Type | Method and Description |
---|---|
Properties |
getObject() |
Class<Properties> |
getObjectType() |
boolean |
isSingleton() |
public GitconPropertiesBeanFactory(ResourceRepository repo, String filePath)
repo
- Source repository where properties file livesfilePath
- The path of properties filepublic Properties getObject() throws IOException
getObject
in interface org.springframework.beans.factory.FactoryBean<Properties>
IOException
public Class<Properties> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<Properties>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<Properties>
Copyright © 2009–2014. All rights reserved.