org.apache.torque.util
Class BeanPropertiesLoader

java.lang.Object
  extended by org.apache.torque.util.BeanPropertiesLoader

public class BeanPropertiesLoader
extends Object


Field Summary
(package private)  Object bean
           
(package private)  String description
           
(package private)  String encoding
           
(package private)  String location
           
private static org.apache.commons.logging.Log log
           
(package private)  boolean overrideExistingPropertyValues
           
(package private)  boolean overrideSystemProperties
           
(package private)  Utils utils
           
 
Constructor Summary
BeanPropertiesLoader()
           
BeanPropertiesLoader(Object bean, String location, String encoding, String description)
           
 
Method Summary
 Object getBean()
           
 String getDescription()
           
 String getEncoding()
           
 String getLocation()
           
protected  String getLogValue(String key, String value)
          Don't display password'ish type properties
 Properties getProperties()
          Load the properties file into a Properties object
protected  Reader getReader()
          Return a Reader for reading in the properties file.
 boolean isOverrideExistingPropertyValues()
           
 boolean isOverrideSystemProperties()
           
 boolean isPropertiesExist()
           
protected  boolean isSkip(Map<String,Object> description, String key)
           
 void loadToBean()
           
 void setBean(Object bean)
           
 void setDescription(String description)
           
 void setEncoding(String encoding)
           
 void setLocation(String location)
           
 void setOverrideExistingPropertyValues(boolean override)
           
 void setOverrideSystemProperties(boolean overrideSystemProperties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

utils

Utils utils

location

String location

encoding

String encoding

bean

Object bean

overrideExistingPropertyValues

boolean overrideExistingPropertyValues

overrideSystemProperties

boolean overrideSystemProperties

description

String description
Constructor Detail

BeanPropertiesLoader

public BeanPropertiesLoader()

BeanPropertiesLoader

public BeanPropertiesLoader(Object bean,
                            String location,
                            String encoding,
                            String description)
Method Detail

isPropertiesExist

public boolean isPropertiesExist()

isSkip

protected boolean isSkip(Map<String,Object> description,
                         String key)

loadToBean

public void loadToBean()
                throws PropertyHandlingException
Throws:
PropertyHandlingException

getLogValue

protected String getLogValue(String key,
                             String value)
Don't display password'ish type properties


getProperties

public Properties getProperties()
                         throws PropertyHandlingException
Load the properties file into a Properties object

Throws:
PropertyHandlingException

getReader

protected Reader getReader()
                    throws PropertyHandlingException
Return a Reader for reading in the properties file. First check the file system to see if the file exists. If not, return a Reader using Spring Resource loading

Throws:
PropertyHandlingException

getLocation

public String getLocation()

setLocation

public void setLocation(String location)

getEncoding

public String getEncoding()

setEncoding

public void setEncoding(String encoding)

getBean

public Object getBean()

setBean

public void setBean(Object bean)

isOverrideExistingPropertyValues

public boolean isOverrideExistingPropertyValues()

setOverrideExistingPropertyValues

public void setOverrideExistingPropertyValues(boolean override)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

isOverrideSystemProperties

public boolean isOverrideSystemProperties()

setOverrideSystemProperties

public void setOverrideSystemProperties(boolean overrideSystemProperties)


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.