The component is added to a group only when it is loaded, not when a service is added or changed.
Use case:
first configuration xml loads two components A and B. B has a slaveActivity while A has a master Activity.
second configuration xml loads other components and add a port to the component A. Therefore A is moved to the second group.
When shutting down the Deployer unload groups in the reverse order.
With the current logic A is unloaded when the second group is unloaded but B that is a slaveActivity is unloaded only when the first group is unloaded.
The component is added to a group only when it is loaded, not when a service is added or changed.
Use case:
When shutting down the Deployer unload groups in the reverse order. With the current logic A is unloaded when the second group is unloaded but B that is a slaveActivity is unloaded only when the first group is unloaded.