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#configureObserverMethod()| Modifier and Type | Method and Description |
|---|---|
ProducerConfigurator<T> |
addInjectionPoint(InjectionPoint injectionPoint)
Add an injection point to the configured producer.
|
ProducerConfigurator<T> |
addInjectionPoints(InjectionPoint... injectionPoints)
Add injection points to the configured producer.
|
ProducerConfigurator<T> |
addInjectionPoints(Set<InjectionPoint> injectionPoints)
Add injection points to the configured producer.
|
ProducerConfigurator<T> |
disposeWith(Consumer<T> callback)
Set a callback to destroy the produced instance.
|
ProducerConfigurator<T> |
injectionPoints(InjectionPoint... injectionPoints)
Replace injection points for the configured producer.
|
<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 - Producer.produce(CreationalContext)ProducerConfigurator<T> disposeWith(Consumer<T> callback)
callback - Producer.dispose(Object)ProducerConfigurator<T> addInjectionPoint(InjectionPoint injectionPoint)
injectionPoint - the injectionPoint to addProducerConfigurator<T> addInjectionPoints(InjectionPoint... injectionPoints)
injectionPoints - the injectionPoints to addProducerConfigurator<T> addInjectionPoints(Set<InjectionPoint> injectionPoints)
injectionPoints - the injectionPoints to addProducerConfigurator<T> injectionPoints(InjectionPoint... injectionPoints)
injectionPoints - the injectionPoints for the configured beanCopyright © 2008–2017 JBoss by Red Hat, Inc.. All rights reserved.