You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2012/11/26 08:48:59 UTC
[jira] [Created] (OWB-729) review CreationalContext in Interceptor
and Decorator creation
Mark Struberg created OWB-729:
---------------------------------
Summary: review CreationalContext in Interceptor and Decorator creation
Key: OWB-729
URL: https://issues.apache.org/jira/browse/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: http://www.atlassian.com/software/jira