public abstract class AbstractCdiBeanSupplier<T> extends Object implements org.glassfish.jersey.internal.inject.DisposableSupplier<T>
Supplier.get()
method that
could just delegate to the existing _provide()
method.Constructor and Description |
---|
AbstractCdiBeanSupplier(Class<T> rawType,
org.glassfish.jersey.internal.inject.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, org.glassfish.jersey.internal.inject.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)
org.glassfish.jersey.internal.inject.DisposableSupplier
Supplier
.dispose
in interface org.glassfish.jersey.internal.inject.DisposableSupplier<T>
instance
- the instance to be disposed.Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.