- public ExternalDatasourceComponent(String aName) throws IOException {
- this(aName, loadProperties());
- }
-
- private static Properties loadProperties() throws IOException {
- Properties dbProps = new Properties();
- dbProps.load(new ClassPathResource(DATABASE_PROPERTIES)
- .getInputStream());
- return dbProps;
- }
-
- public ExternalDatasourceComponent(String aName, Properties aProps) throws IOException {
- super(aName);
- _dbProps = aProps;