JBoss EJB 3.1 Common Interceptor Library Parent 2.0.0.Final

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

java.lang.Object
  extended by org.jboss.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()
          
 List<MethodMetadata> getInterceptorMethods(InterceptionType interceptionType)
          Returns the list of interceptor methods of this class for a given interception type.
 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.
 boolean isTargetClass()
           
 
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:

isTargetClass

public boolean isTargetClass()
Specified by:
isTargetClass in interface InterceptorMetadata<T>

getInterceptorMethods

public List<MethodMetadata> getInterceptorMethods(InterceptionType interceptionType)
Description copied from interface: InterceptorMetadata
Returns the list of interceptor methods of this class for a given interception type.

Specified by:
getInterceptorMethods in interface InterceptorMetadata<T>
Returns:
a list of methods

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:

JBoss EJB 3.1 Common Interceptor Library Parent 2.0.0.Final

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