PicoContainer
  1. PicoContainer
  2. PICO-245

Some Exceptions to be available in Startable

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: PicoContainer (Java)
    • Labels:
      None
    • Environment:
      Nothing specific
    • Number of attachments :
      0

      Description

      I used PicoContainer to mimic the Web Container calls. So my Start method would act like sevlet .init while stop would be servlet.close. I need some exceptions also to be thrown from these exceptions. So i actually modified the Startable.start to throw Exception and same would hold to Stoppable.stop.

        Activity

        Jörg Schaible made changes -
        Field Original Value New Value
        Fix Version/s 1.3 [ 11331 ]
        Affects Version/s 1.3 [ 11331 ]
        Assignee Joerg Schaible [ joehni ]
        Affects Version/s 1.1 [ 10307 ]
        Hide
        Jörg Schaible added a comment -

        Hello Varadarajan,

        no, we will not add any checked exception to the Lifecycle interfaces. It just does not make sense, since we cannot know, what type of exceptions might be thrown. Just adding "Exception" to expect anything is not helpful. See also Bruce Eckel's comment http://www.mindview.net/Etc/Discussions/CheckedExceptions.

        In your case you might either wrap your exceptions with a RuntimeException or define your own Lifecycle interfaces using the LifecycleVisitor in 1.1 or the LifecylceManager in 1.2.

        Regards,
        Jörg

        Show
        Jörg Schaible added a comment - Hello Varadarajan, no, we will not add any checked exception to the Lifecycle interfaces. It just does not make sense, since we cannot know, what type of exceptions might be thrown. Just adding "Exception" to expect anything is not helpful. See also Bruce Eckel's comment http://www.mindview.net/Etc/Discussions/CheckedExceptions . In your case you might either wrap your exceptions with a RuntimeException or define your own Lifecycle interfaces using the LifecycleVisitor in 1.1 or the LifecylceManager in 1.2. Regards, Jörg
        Jörg Schaible made changes -
        Resolution Won't Fix [ 2 ]
        Status Open [ 1 ] Resolved [ 5 ]

          People

          • Assignee:
            Jörg Schaible
            Reporter:
            Varadarajan Aravamudhan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1 day
              1d
              Remaining:
              Remaining Estimate - 1 day
              1d
              Logged:
              Time Spent - Not Specified
              Not Specified