T - The return type of the producer method or the type of the producer fieldpublic interface ProducerConfigurator<T>
 A ProducerConfigurator can configure a Producer. The container must provide an implementation of this
 interface.
 
This configurator is not thread safe and shall not be used concurrently.
ProcessProducer.configureProducer()| Modifier and Type | Method and Description | 
|---|---|
ProducerConfigurator<T> | 
disposeWith(Consumer<T> callback)
Set a callback to destroy the produced instance. 
 | 
<U extends T> | 
produceWith(Function<CreationalContext<U>,U> callback)
Set a callback to produce a new instance. 
 | 
<U extends T> ProducerConfigurator<T> produceWith(Function<CreationalContext<U>,U> callback)
callback - a Function defining the callback to setProducer.produce(CreationalContext)ProducerConfigurator<T> disposeWith(Consumer<T> callback)
callback - a Consumer defining the callback to setProducer.dispose(Object)Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.