Details
-
Type: Bug
-
Status: Closed
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: 1.2-RC1
-
Fix Version/s: 1.2
-
Component/s: PicoContainer (Java)
-
Labels:None
-
Number of attachments :
Description
If a container with multiple components is started and the start of a component fails if others have been started already, there is currently no way to stop them again:
- a user does not know, which have been started
- calling pico.stop() throws an IllegalStateException (although it knows which ones have been initialized)
Issue Links
- is related to
-
PICO-266 CCA throws exception when attempting to stop a component that was never started
Activity
Jörg Schaible
made changes -
Jörg Schaible
made changes -
Component/s | PicoContainer (Java) [ 10191 ] | |
Description |
If a container with multiple components is started and the start of a component fails if others have been started already, there is currently no way to stop them again: - a user does not know, which have been started - calling pico.stop() throws an IllegalStateException (although it knows which ones have been initialized) |
If a container with multiple components is started and the start of a component fails if others have been started already, there is currently no way to stop them again: - a user does not know, which have been started - calling pico.stop() throws an IllegalStateException (although it knows which ones have been initialized) |
Paul Hammant
made changes -
Assignee | Joerg Schaible [ joehni ] |
Jörg Schaible
made changes -
Assignee | Joerg Schaible [ joehni ] | Mauro Talevi [ maurotalevi ] |
Mauro Talevi
made changes -
Assignee | Mauro Talevi [ maurotalevi ] | Joerg Schaible [ joehni ] |
Jörg Schaible
made changes -
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
A similar question arises for stop and dispose. Should the Pico continue for the lasting components in case of an exception? IMHO, yes.