public class InterceptorBindingsAdapter extends Object implements InterceptorBindings
| Constructor and Description |
|---|
InterceptorBindingsAdapter(InterceptionModel interceptionModel) |
| Modifier and Type | Method and Description |
|---|---|
Collection<javax.enterprise.inject.spi.Interceptor<?>> |
getAllInterceptors()
Returns all interceptors that are bound to an EJB object through the
InterceptorBinding mechanism and are enabled
through the beans.xml file. |
List<javax.enterprise.inject.spi.Interceptor<?>> |
getLifecycleInterceptors(javax.enterprise.inject.spi.InterceptionType interceptionType)
Returns the lifecycle interceptors that are applicable to a given
InterceptionType (bound by
InterceptorBinding). |
List<javax.enterprise.inject.spi.Interceptor<?>> |
getMethodInterceptors(javax.enterprise.inject.spi.InterceptionType interceptionType,
Method method)
Returns the interceptors that are applicable to a given
InterceptionType and method (bound by
InterceptorBinding). |
public InterceptorBindingsAdapter(InterceptionModel interceptionModel)
public Collection<javax.enterprise.inject.spi.Interceptor<?>> getAllInterceptors()
InterceptorBindingsInterceptorBinding mechanism and are enabled
through the beans.xml file.
This includes class and method-bound interceptors.The purpose of this method is to indicate what interceptors does the
container need to interact with, for a given EJB.
Note: in the case of an EJB, the expectation is that the interpretation of {link @javax.interceptor.Interceptors} is left
to the container, and the interceptors provided by the binding are complementarygetAllInterceptors in interface InterceptorBindingsInterceptorBinding mechanism and are enabledpublic List<javax.enterprise.inject.spi.Interceptor<?>> getMethodInterceptors(javax.enterprise.inject.spi.InterceptionType interceptionType, Method method)
InterceptorBindingsInterceptionType and method (bound by
InterceptorBinding).
This includes class and method-bound interceptors, but no interceptors bound by EJB-specific mechanisms.getMethodInterceptors in interface InterceptorBindingsinterceptionType - - the interception type (non-lifecycle)method - - the method that is to be interceptedpublic List<javax.enterprise.inject.spi.Interceptor<?>> getLifecycleInterceptors(javax.enterprise.inject.spi.InterceptionType interceptionType)
InterceptorBindingsInterceptionType (bound by
InterceptorBinding).
This includes class and method-bound interceptors, but no interceptors bound by EJB-specific mechanisms.getLifecycleInterceptors in interface InterceptorBindingsinterceptionType - - the interception type (lifecycle)Copyright © 2016. All rights reserved.