Package org.opennms.test
Class DaoTestConfigBean
- java.lang.Object
-
- org.opennms.test.DaoTestConfigBean
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class DaoTestConfigBean extends Object implements org.springframework.beans.factory.InitializingBean
Support class to help with configuration that needs to happen in integration tests before Spring attempts to do context initialization of applicationContext-dao.xml. In particular, this sets up system properties that are needed by Spring. System properties are not set until afterPropertiesSet() is called.- Version:
- $Id: $
- Author:
- DJ Gregor
-
-
Constructor Summary
Constructors Constructor Description DaoTestConfigBean()
Constructor for DaoTestConfigBean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
afterPropertiesSetString
getRelativeHomeDirectory()
getRelativeHomeDirectoryString
getRelativeRrdBaseDirectory()
getRelativeRrdBaseDirectoryString
getRrdBinary()
getRrdBinaryvoid
setRelativeHomeDirectory(String relativeHomeDirectory)
setRelativeHomeDirectoryvoid
setRelativeRrdBaseDirectory(String rrdBaseDirectory)
setRelativeRrdBaseDirectoryvoid
setRrdBinary(String rrdBinary)
setRrdBinary
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
getRelativeHomeDirectory
public String getRelativeHomeDirectory()
getRelativeHomeDirectory
- Returns:
- a
String
object.
-
setRelativeHomeDirectory
public void setRelativeHomeDirectory(String relativeHomeDirectory)
setRelativeHomeDirectory
- Parameters:
relativeHomeDirectory
- aString
object.
-
getRelativeRrdBaseDirectory
public String getRelativeRrdBaseDirectory()
getRelativeRrdBaseDirectory
- Returns:
- a
String
object.
-
setRelativeRrdBaseDirectory
public void setRelativeRrdBaseDirectory(String rrdBaseDirectory)
setRelativeRrdBaseDirectory
- Parameters:
rrdBaseDirectory
- aString
object.
-
-