Uploaded image for project: 'ColdBox Platform'
  1. COLDBOX-745

Throw useful error when interceptor events are fired while still registering interceptors

    Details

    • Type: Improvement
    • Status: Resolved (View workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects versions: None
    • Fix versions: None
    • Components: None
    • Labels:
      None

      Description

      For example, if you create an interceptor with a wirebox property injection of a service that fires interception points while initializing, you get an issue where interception points may not fire properly.

      The solution in these cases is to use the "provider" DSL when injecting services into your interceptors so that they are not initialized until actually used by the interceptor.

      Related Pull request makes Coldbox throw an informative error for the developer when creating interceptors in this way.

        Gliffy Diagrams

          Attachments

            Issue links

              Activity

                People

                • Assignee:
                  lmajano Luis Majano
                  Reporter:
                  dominicwatson Dominic Watson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: