public interface ProducerConfigurator<T>
| Modifier and Type | Method and Description |
|---|---|
ProducerConfigurator<T> |
disposeWith(Consumer<T> callback)
Set a
Consumer to destroy a bean instance. |
<U extends T> |
produceWith(Function<CreationalContext<U>,U> callback) |
<U extends T> ProducerConfigurator<T> produceWith(Function<CreationalContext<U>,U> callback)
callback - use as produced instance for the configured beanProducerConfigurator<T> disposeWith(Consumer<T> callback)
Consumer to destroy a bean instance.
If no dispose callback is specified, a NOOP dispose callback is automatically set.callback - the Consumer to dispose the instanceCopyright © 2021. All rights reserved.