Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdi-dev] Bean/interceptor clarification question

Is a bean class with an @AroundInvoke method an interceptor class (in CDI Full of course)?

For example:

// Assume Bean is discovered or added programmatically, i.e. it is a valid CDI bean.
// Is it also an interceptor?
public class Bean {
  public void businessMethod() {
    // do something
  }
  @AroundInvoke
  Object aroundInvokeMethod(InvocationContext ic) throws Exception {
    return ic.proceed();
  }
}

Best,
Laird


Back to the top