Skip to content
Browse files
Improved: Allow updating the ‘Config’ object of the server instance

When doing some informal tests, it is useful to be able to create
small programs using the OFBiz delegator without requiring every
components to be loaded as done by the ‘Start#main’ static method.

To achieve that with the current singleton based implementation, we
need to instantiate a custom ‘Config’ object and use it as the global

Thanks: Samuel Trégouët for your contribution.

git-svn-id: 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Sep 22, 2019
1 parent daa1e61 commit 1fd1b030d946392f90a4d873bdbe8c963c9bea0e
Showing with 9 additions and 0 deletions.
  1. +9 −0 framework/start/src/main/java/org/apache/ofbiz/base/start/
@@ -109,6 +109,15 @@ public Config getConfig() {
return this.config;

* Updates the server's main configuration.
* @param c the new configuration
public void setConfig(Config c) {
this.config = c;

* Returns the server's current state.

0 comments on commit 1fd1b03

Please sign in to comment.