org.jboss.weld.interceptor.reader
Class SimpleInterceptorMetadata<T>

java.lang.Object
  extended by org.jboss.weld.interceptor.reader.SimpleInterceptorMetadata<T>
All Implemented Interfaces:
Serializable, InterceptorMetadata<T>

public class SimpleInterceptorMetadata<T>
extends Object
implements InterceptorMetadata<T>, Serializable

Author:
Marius Bogoevici
See Also:
Serialized Form

Constructor Summary
SimpleInterceptorMetadata(InterceptorReference<T> interceptorReference, boolean targetClass, Map<InterceptionType,List<MethodMetadata>> interceptorMethodMap)
           
 
Method Summary
 ClassMetadata<?> getInterceptorClass()
          
 InterceptorInvocation getInterceptorInvocation(Object interceptorInstance, InterceptorMetadata interceptorReference, InterceptionType interceptionType)
           
 List<MethodMetadata> getInterceptorMethods(InterceptionType interceptionType)
           
 InterceptorReference<T> getInterceptorReference()
          Returns the class for which this interceptor metadata was created
 boolean isEligible(InterceptionType interceptionType)
          Returns true if the interceptor corresponding to this InterceptorMetadata has interceptor methods for the given interceptionType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleInterceptorMetadata

public SimpleInterceptorMetadata(InterceptorReference<T> interceptorReference,
                                 boolean targetClass,
                                 Map<InterceptionType,List<MethodMetadata>> interceptorMethodMap)
Method Detail

getInterceptorClass

public ClassMetadata<?> getInterceptorClass()

Specified by:
getInterceptorClass in interface InterceptorMetadata<T>

getInterceptorReference

public InterceptorReference<T> getInterceptorReference()
Description copied from interface: InterceptorMetadata
Returns the class for which this interceptor metadata was created

Specified by:
getInterceptorReference in interface InterceptorMetadata<T>
Returns:

getInterceptorMethods

public List<MethodMetadata> getInterceptorMethods(InterceptionType interceptionType)

isEligible

public boolean isEligible(InterceptionType interceptionType)
Returns true if the interceptor corresponding to this InterceptorMetadata has interceptor methods for the given interceptionType. Else returns false.

Specified by:
isEligible in interface InterceptorMetadata<T>
Parameters:
interceptionType - The InterceptionType
Returns:

getInterceptorInvocation

public InterceptorInvocation getInterceptorInvocation(Object interceptorInstance,
                                                      InterceptorMetadata interceptorReference,
                                                      InterceptionType interceptionType)
Specified by:
getInterceptorInvocation in interface InterceptorMetadata<T>


Copyright © 2013 Seam Framework. All Rights Reserved.