public abstract class AbstractCdiBeanSupplier<T> extends Object implements DisposableSupplier<T>
Supplier.get()
method that
could just delegate to the existing _provide()
method.Constructor and Description |
---|
AbstractCdiBeanSupplier(Class<T> rawType,
InjectionManager injectionManager,
javax.enterprise.inject.spi.BeanManager beanManager,
boolean cdiManaged)
Create new factory instance for given type and bean manager.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose(T instance)
This method will dispose the provided object created by this
Supplier . |
public AbstractCdiBeanSupplier(Class<T> rawType, InjectionManager injectionManager, javax.enterprise.inject.spi.BeanManager beanManager, boolean cdiManaged)
rawType
- type of the components to provide.injectionManager
- actual injection manager instance.beanManager
- current bean manager to get references from.cdiManaged
- set to true
if the component should be managed by CDI.public void dispose(T instance)
DisposableSupplier
Supplier
.dispose
in interface DisposableSupplier<T>
instance
- the instance to be disposed.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.