org.ops4j.peaberry.util.decorators
Class DecoratorChain<S>
java.lang.Object
org.ops4j.peaberry.util.decorators.DecoratorChain<S>
- All Implemented Interfaces:
- ImportDecorator<S>
public final class DecoratorChain<S>
- extends Object
- implements ImportDecorator<S>
An ImportDecorator that applies decorators in a chain, right-left.
- Author:
- mcculls@gmail.com (Stuart McCulloch)
|
Method Summary |
|
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 |
DecoratorChain
public DecoratorChain(ImportDecorator<S>... decorators)
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.