Thanks to visit codestin.com
Credit goes to github.com

Skip to content

write down the rules for interceptors in CDI Lite #545

@Ladicek

Description

@Ladicek

We verbally agreed that we want to narrow down how interceptors may be declared and bound in CDI Lite. We need to write it down to the spec.

A big part of the discussion happened in this issue: jakartaee/cdi-tck#262 I'm copying the table that we agreed upon:

✔️ means "part of CDI Lite"
❌ means "not part of CDI Lite, only CDI Full"
❔ means "I don't know, please help" :-)
☣️ means "can't happen"

@AroundConstruct @PostConstruct, @PreDestroy @AroundInvoke
On target class ☣️ ✔️
On interceptor class, binding annotation + @Priority ✔️ ✔️ ✔️
On interceptor class, @Interceptors
On interceptor class, enabled using beans.xml
Implementing Interceptor
Using InterceptionFactory ☣️ ☣️

I'm leaving @AroundInvoke on target class as ❔, but all things considered, it should really be ❌.

Metadata

Metadata

Assignees

Labels

LiteRelated to CDI Lite

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions