Package org.glassfish.jersey.inject.hk2
Class InstanceSupplierFactoryBridge<T>
- java.lang.Object
-
- org.glassfish.jersey.inject.hk2.InstanceSupplierFactoryBridge<T>
-
- Type Parameters:
T- type which could be handled bySupplierand this bridge.
- All Implemented Interfaces:
Factory<T>
public class InstanceSupplierFactoryBridge<T> extends Object implements Factory<T>
This class is used as a bridge betweenHK2 Factoryand JDKSupplier. Using this classSupplieris able to behave as a factory in service locator. The bridge just delegates all invocations to providedServiceLocatorand therefore all operation should be in proper scope and context.This bridge is dedicated to instance binding therefore underlying
supplieris always only single instance.