use of com.google.inject.Singleton in project devonfw-testing by devonfw.
the class DataEncryptionModule method provideSpreadsheetEnvironmentService.
@Provides
@Singleton
IDataEncryptionService provideSpreadsheetEnvironmentService() {
String path = System.getProperty("user.dir") + Paths.get("/src/resources/secretData");
DataEncryptionService.init(new File(path));
return DataEncryptionService.getInstance();
}
Aggregations