Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * JBoss, Home of Professional Open Source
  * Copyright 2010, Red Hat, Inc., and individual contributors
  * by the @authors tag. See the copyright.txt in the distribution for a
  * full listing of individual contributors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jboss.weld.ejb.spi;

Author(s):
Marius Bogoevici
public interface InterceptorBindings {
    
Returns all interceptors that are bound to an EJB object through the javax.interceptor.InterceptorBinding 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

Returns:
all interceptors that are bound to an EJB object through the javax.interceptor.InterceptorBinding mechanism and are enabled
Javax.interceptor.Interceptors:
is left to the container, and the interceptors provided by the binding are complementary
Returns the interceptors that are applicable to a given javax.enterprise.inject.spi.InterceptionType and method (bound by javax.interceptor.InterceptorBinding). This includes class and method-bound interceptors, but no interceptors bound by EJB-specific mechanisms.

Parameters:
interceptionType - the interception type (non-lifecycle)
method - the method that is to be intercepted
Returns:
- an immutable list of interceptors applicable to the method (empty if no such interceptors exist)
Throws:
java.lang.IllegalArgumentException if interceptionType is not javax.enterprise.inject.spi.InterceptionType.AROUND_INVOKE or javax.enterprise.inject.spi.InterceptionType.AROUND_TIMEOUT
    List<Interceptor<?>> getMethodInterceptors(InterceptionType interceptionTypeMethod method);

    
Returns the lifecycle interceptors that are applicable to a given javax.enterprise.inject.spi.InterceptionType (bound by javax.interceptor.InterceptorBinding). This includes class and method-bound interceptors, but no interceptors bound by EJB-specific mechanisms.

Parameters:
interceptionType - the interception type (lifecycle)
Returns:
- an immutable list of interceptors applicable to the method (empty if no such interceptors exist)
Throws:
java.lang.IllegalArgumentException if interceptionType not javax.enterprise.inject.spi.InterceptionType.AROUND_INVOKE or javax.enterprise.inject.spi.InterceptionType.AROUND_TIMEOUT
New to GrepCode? Check out our FAQ X