Mark Struberg created OWB-1044:
----------------------------------

             Summary: Cache whether @Initialized and @Destroyed get used at all 
in an app
                 Key: OWB-1044
                 URL: https://issues.apache.org/jira/browse/OWB-1044
             Project: OpenWebBeans
          Issue Type: Improvement
          Components: Context and Scopes
    Affects Versions: 1.5.0
            Reporter: Mark Struberg
             Fix For: 1.5.0


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to