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
|Constructor and Description|
Create new factory instance for given type and bean manager.
|Modifier and Type||Method and Description|
This method will dispose the provided object created by this
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
trueif the component should be managed by CDI.
public void dispose(T instance)
instance- the instance to be disposed.
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.