org.ops4j.peaberry.util.decorators
Class InterceptingDecorator<S>

java.lang.Object
  extended by org.ops4j.peaberry.util.decorators.InterceptingDecorator<S>
All Implemented Interfaces:
ImportDecorator<S>

public final class InterceptingDecorator<S>
extends Object
implements ImportDecorator<S>

An ImportDecorator that supports MethodInterceptors.

Author:
mcculls@gmail.com (Stuart McCulloch)

Constructor Summary
InterceptingDecorator(com.google.inject.matcher.Matcher<? super Class<?>> classMatcher, com.google.inject.matcher.Matcher<? super Method> methodMatcher, org.aopalliance.intercept.MethodInterceptor... interceptors)
           
 
Method Summary
<T extends S>
Import<T>
decorate(Import<T> service)
          Decorate the given imported service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptingDecorator

public InterceptingDecorator(com.google.inject.matcher.Matcher<? super Class<?>> classMatcher,
                             com.google.inject.matcher.Matcher<? super Method> methodMatcher,
                             org.aopalliance.intercept.MethodInterceptor... interceptors)
Method Detail

decorate

public <T extends S> Import<T> decorate(Import<T> service)
Description copied from interface: ImportDecorator
Decorate the given imported service.

Specified by:
decorate in interface ImportDecorator<S>
Parameters:
service - imported service handle
Returns:
decorated service handle


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.