JBoss EJB 3.1 Common Interceptor Library Parent 2.0.0.Final

org.jboss.interceptor.spi.model
Interface InterceptionModel<T,I>

All Superinterfaces:
Serializable
All Known Subinterfaces:
BuildableInterceptionModel<T,I>

public interface InterceptionModel<T,I>
extends Serializable

Describes the InterceptorMetadatas that apply to a particular entity. Implementors must implement equals() and hashcode() consistently

Author:
Marius Bogoevici

Method Summary
 Set<InterceptorMetadata<I>> getAllInterceptors()
          Returns all interceptor classes that are applicable to the given intercepted entity
 T getInterceptedEntity()
           
 List<InterceptorMetadata<I>> getInterceptors(InterceptionType interceptionType, Method method)
          Returns the interceptors applicable for the given interception type and method
 

Method Detail

getInterceptors

List<InterceptorMetadata<I>> getInterceptors(InterceptionType interceptionType,
                                             Method method)
Returns the interceptors applicable for the given interception type and method

Parameters:
interceptionType -
method - - null if the interception type is lifecycle
Returns:
list of interceptors
Throws:
IllegalArgumentException - if interceptionType is business method or around timeout but method is null, as well as if interceptionType is callback and method is not null

getAllInterceptors

Set<InterceptorMetadata<I>> getAllInterceptors()
Returns all interceptor classes that are applicable to the given intercepted entity

Returns:
all interceptors

getInterceptedEntity

T getInterceptedEntity()
Returns:
the intercepted entity

JBoss EJB 3.1 Common Interceptor Library Parent 2.0.0.Final

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.