org.ops4j.peaberry.builders
Interface DecoratedServiceBuilder<T>

All Superinterfaces:
InjectedServiceBuilder<T>, OutjectedServiceBuilder<T>, QualifiedServiceBuilder<T>, ServiceBuilder<T>
All Known Implementing Classes:
ServiceBuilderImpl

public interface DecoratedServiceBuilder<T>
extends QualifiedServiceBuilder<T>

See Peaberry for examples of the dynamic service builder API.

Author:
mcculls@gmail.com (Stuart McCulloch)

Method Summary
 QualifiedServiceBuilder<T> decoratedWith(ImportDecorator<? super T> instance)
          Apply the given decoration to the dynamic service.
 QualifiedServiceBuilder<T> decoratedWith(com.google.inject.Key<? extends ImportDecorator<? super T>> key)
          Apply the given decoration to the dynamic service.
 
Methods inherited from interface org.ops4j.peaberry.builders.QualifiedServiceBuilder
attributes, attributes, filter, filter
 
Methods inherited from interface org.ops4j.peaberry.builders.InjectedServiceBuilder
in, in
 
Methods inherited from interface org.ops4j.peaberry.builders.OutjectedServiceBuilder
out, out
 
Methods inherited from interface org.ops4j.peaberry.builders.ServiceBuilder
export, multiple, single
 

Method Detail

decoratedWith

QualifiedServiceBuilder<T> decoratedWith(com.google.inject.Key<? extends ImportDecorator<? super T>> key)
Apply the given decoration to the dynamic service.

Parameters:
key - decorator key
Returns:
dynamic service builder

decoratedWith

QualifiedServiceBuilder<T> decoratedWith(ImportDecorator<? super T> instance)
Apply the given decoration to the dynamic service.

Parameters:
instance - decorator
Returns:
dynamic service builder


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