Interface DisposableSupplier<T>
- Type Parameters:
T
- type which is created byDisposableSupplier
.
- All Superinterfaces:
Supplier<T>
- All Known Implementing Classes:
AbstractCdiBeanSupplier
,GenericCdiBeanSupplier
,RequestScopedCdiBeanSupplier
Supplier extension which is able to call
Supplier.get()
method to create a new object and also call dispose(Object)
to make some cleaning code regarding the instance and the specific Supplier
instance.- Author:
- Petr Bouda
-
Method Summary
-
Method Details
-
dispose
This method will dispose the provided object created by thisSupplier
.- Parameters:
instance
- the instance to be disposed.
-