Skip to content

Commit

Permalink
Adding configurable properties for max_binary_size
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcilvenna committed Feb 10, 2020
1 parent 8844561 commit b108ef7
Show file tree
Hide file tree
Showing 2 changed files with 375 additions and 363 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,13 @@ public BasicDataSource dataSource() throws ClassNotFoundException, NoSuchMethodE
@Lazy
@Bean
public IBinaryStorageSvc binaryStorageSvc() {
return new DatabaseBlobBinaryStorageSvcImpl();
DatabaseBlobBinaryStorageSvcImpl binaryStorageSvc = new DatabaseBlobBinaryStorageSvcImpl();

if (HapiProperties.getMaxBinarySize() != null) {
binaryStorageSvc.setMaximumBinarySize(HapiProperties.getMaxBinarySize());
}

return binaryStorageSvc;
}

@Bean()
Expand Down
Loading

0 comments on commit b108ef7

Please sign in to comment.