Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-1044

Cache whether @Initialized and @Destroyed get used at all in an app

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.6.0
    • Context and Scopes
    • None

    Description

      Since CDI-1.1 the container has to fire @Initialized(ApplicationScoped.class), @Initialized(RequestScoped.class), etc. The same is needed for @Destroyed.

      But if an application doesn't use e.g. @Initialized(RequestScoped.class) at all, then we also do not need to fire this event.
      So we should detect at bootstrap whether those events get used in the customer application at all (BeanManager#resolveObserverMethods) and suppress firing those events if not needed.

      Attachments

        Activity

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: