Skip to content

Refactor Swift storage driver properties / properties getter #5478

@carlosmcgregor

Description

@carlosmcgregor

The Swift storage driver loads properties from swift.properties with every action executed by the driver (e.g. when creating a temp url). The getter itself, which loads the file, is located in these lines.

Loading properties would be better suited for a class like (SystemConfig.java)[https://github.com/IQSS/dataverse/blob/develop/src/main/java/edu/harvard/iq/dataverse/util/SystemConfig.java]. Please correct me if this would not be the best place!

This also opens a bigger argument on whether swift.properties should be on a separate file than domain.xml. If not, then we could forgo the previously mentioned refactoring of the getter and move ahead with loading the configurations with System.getProperty() (à la S3 driver).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions