/[Apache-SVN]
ViewVC logotype

Revision 1765127


Jump to revision: Previous Next
Author: taher
Date: Sun Oct 16 09:07:08 2016 UTC (7 years, 6 months ago)
Changed paths: 30
Log Message:
Improved: Refactor and simplify the startup sequence in OFBiz
(OFBIZ-8337)

This is a major refactoring exercise to simplify the startup sequence in
OFBiz. There are no functional changes, however, both the logic and the
API signatures of the core classes in OFBiz are changed to help simplify
the startup sequence. The changes insofar are summarized as:

- Rename ContainerConfig.Container to ContainerConfig.Configuration, the old
  nameing was very confusing as it confuses it with actual containers
- Change the signature of ContainerLoader and Container to accept
  List<StartupCommand> instead of String[]. And also migrate the adapter for
  converting these args into a standalone class called
  StartupCommandsToArgsAdapter
- Remove the LockedBy annotation as it is not used
- Substantially simplify the ContainerLoader load and unload logic and delete
  the start logic (merge it with load). The interface StartupLoader was updated
  accordingly
- Remove old logic to load containers in hot-deploy components
- Remove printThreadDump output from ContainerLoader which used to exist for
  debugging purposes and is no longer necessary
- Cleanup the AdminServer startup logic
- Change the StartupControlPanel logic to use only one StartupLoader instead
  of a list. The only implementation is ContainerLoader
- Remove the synchronized blocks in StartupControlPanel due to having only one
  loader
- Update the startup .properties files to reflect the changes in the startup
  logic
- Update the TestRunContainer to use List<StartupCommand> in its logic

We expect more commits (specifically to the containers) to complete this
refactoring initiative



Changed paths

Path Details
Directoryofbiz/trunk/framework/base/src/main/java/org/apache/ofbiz/base/component/ComponentConfig.java modified , text changed
Directoryofbiz/trunk/framework/base/src/main/java/org/apache/ofbiz/base/container/ComponentContainer.java modified , text changed
Directoryofbiz/trunk/framework/base/src/main/java/org/apache/ofbiz/base/container/Container.java modified , text changed
Directoryofbiz/trunk/framework/base/src/main/java/org/apache/ofbiz/base/container/ContainerConfig.java modified , text changed
Directoryofbiz/trunk/framework/base/src/main/java/org/apache/ofbiz/base/container/ContainerLoader.java modified , text changed
Directoryofbiz/trunk/framework/base/src/main/java/org/apache/ofbiz/base/container/JustLoadComponentsContainer.java modified , text changed
Directoryofbiz/trunk/framework/base/src/main/java/org/apache/ofbiz/base/container/NamingServiceContainer.java modified , text changed
Directoryofbiz/trunk/framework/base/src/main/java/org/apache/ofbiz/base/container/StartupCommandToArgsAdapter.java added
Directoryofbiz/trunk/framework/base/src/main/java/org/apache/ofbiz/base/lang/LockedBy.java deleted
Directoryofbiz/trunk/framework/base/src/main/java/org/apache/ofbiz/base/metrics/MetricsFactory.java modified , text changed
Directoryofbiz/trunk/framework/catalina/src/main/java/org/apache/ofbiz/catalina/container/CatalinaContainer.java modified , text changed
Directoryofbiz/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/DelegatorContainer.java modified , text changed
Directoryofbiz/trunk/framework/entityext/src/main/java/org/apache/ofbiz/entityext/data/EntityDataLoadContainer.java modified , text changed
Directoryofbiz/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ServiceContainer.java modified , text changed
Directoryofbiz/trunk/framework/service/src/main/java/org/apache/ofbiz/service/mail/JavaMailContainer.java modified , text changed
Directoryofbiz/trunk/framework/service/src/main/java/org/apache/ofbiz/service/rmi/RmiServiceContainer.java modified , text changed
Directoryofbiz/trunk/framework/start/src/main/java/org/apache/ofbiz/base/start/AdminClient.java modified , text changed
Directoryofbiz/trunk/framework/start/src/main/java/org/apache/ofbiz/base/start/AdminServer.java modified , text changed
Directoryofbiz/trunk/framework/start/src/main/java/org/apache/ofbiz/base/start/Config.java modified , text changed
Directoryofbiz/trunk/framework/start/src/main/java/org/apache/ofbiz/base/start/StartupCommand.java modified , text changed
Directoryofbiz/trunk/framework/start/src/main/java/org/apache/ofbiz/base/start/StartupCommandUtil.java modified , text changed
Directoryofbiz/trunk/framework/start/src/main/java/org/apache/ofbiz/base/start/StartupControlPanel.java modified , text changed
Directoryofbiz/trunk/framework/start/src/main/java/org/apache/ofbiz/base/start/StartupLoader.java modified , text changed
Directoryofbiz/trunk/framework/start/src/main/java/org/apache/ofbiz/base/start/load-data.properties modified , text changed
Directoryofbiz/trunk/framework/start/src/main/java/org/apache/ofbiz/base/start/rmi.properties modified , text changed
Directoryofbiz/trunk/framework/start/src/main/java/org/apache/ofbiz/base/start/start.properties modified , text changed
Directoryofbiz/trunk/framework/start/src/main/java/org/apache/ofbiz/base/start/test.properties modified , text changed
Directoryofbiz/trunk/framework/testtools/src/main/java/org/apache/ofbiz/testtools/TestRunContainer.java modified , text changed
Directoryofbiz/trunk/framework/webtools/src/main/java/org/apache/ofbiz/webtools/artifactinfo/RunTestEvents.java modified , text changed
Directoryofbiz/trunk/specialpurpose/birt/src/main/java/org/apache/ofbiz/birt/container/BirtContainer.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26