org.eobjects.metamodel.intercept
Class InterceptorList<E>

java.lang.Object
  extended by org.eobjects.metamodel.intercept.InterceptorList<E>
Type Parameters:
E - the thing to intercept

public final class InterceptorList<E>
extends Object

Represents a list of interceptors

Author:
Kasper Sørensen
See Also:
Interceptor

Constructor Summary
InterceptorList()
           
 
Method Summary
 void add(Interceptor<E> interceptor)
           
<I extends Interceptor<E>>
I
getInterceptorOfType(Class<I> interceptorClazz)
          Gets the first (if any) interceptor of a specific type.
protected  E interceptAll(E input)
           
 boolean isEmpty()
           
 void remove(Interceptor<E> interceptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptorList

public InterceptorList()
Method Detail

add

public void add(Interceptor<E> interceptor)

remove

public void remove(Interceptor<E> interceptor)

getInterceptorOfType

public <I extends Interceptor<E>> I getInterceptorOfType(Class<I> interceptorClazz)
Gets the first (if any) interceptor of a specific type.

Parameters:
interceptorClazz -
Returns:

isEmpty

public boolean isEmpty()

interceptAll

protected E interceptAll(E input)


Copyright © 2007-2013. All Rights Reserved.