openwebbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <>
Subject [jira] [Created] (OWB-729) review CreationalContext in Interceptor and Decorator creation
Date Mon, 26 Nov 2012 07:48:59 GMT
Mark Struberg created OWB-729:

             Summary: review CreationalContext in Interceptor and Decorator creation
                 Key: OWB-729
             Project: OpenWebBeans
          Issue Type: Bug
          Components: Interceptor and Decorators
    Affects Versions: 1.2.0
            Reporter: Mark Struberg
            Assignee: Mark Struberg
            Priority: Critical
             Fix For: 1.2.0

We currently need to pass the CreationalContext to our whole Interceptor and Decorator chain
as we atm lazily create them. Sadly a few CDI SPI methods are not designed to allow passing
the CreationalContext, e.g. InjectionTarget#postConstruct() and InjectionTarget#preDestroy();

We might think about switching to EAGERly creating all Interceptors instead. 

As alternative we could think about storing the CreationalContext in a WeakHashMap in our
wrapped CustomContextImpl if the handled context is NormalScoped. 
Plus for intercepted non-NormalScoped beans we need to always create a subclass and store
the CreationalContext therein.

Please add more ideas and feedback!

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message