Move interceptor chain creation logic (pointcutResolved) to AdviceBinding
-------------------------------------------------------------------------
Key: JBAOP-616
URL:
https://jira.jboss.org/jira/browse/JBAOP-616
Project: JBoss AOP
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Reporter: Flavia Rainone
Assignee: Flavia Rainone
AdviceBinding contains all interceptor factories and, thus, should be responsible for
invoking the factories to create interceptors, instead of allowing access to
its internal data to have others perform this.
This task includes the following steps:
- the creation of an InterceptorChainFactory, that encapsulates completely the logic of
creation of interceptor chains, creating CflowInterceptors, GenertedAdvisorInterceptors,
plain interceptors whenever needed.
- the internal fields of the AdviceBinding will be replaced by this factory (except the
pointcut). Ideally, this factory will not be accessed by any other part of the code.
- perform retrieval of the appropriate interceptor chain factory accordingly to the
instrumentation mode.
- add a self removal operation to AdviceBinding. This operation will remove all created
interceptors from their chains.
Having this structure (ie., logic of chain creation moved to inside AdviceBinding) is the
only way that allows the efficient removal of bindings, without performing any matching or
search.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira