T
- type which could be handled by Supplier
and this bridge.public class InstanceSupplierFactoryBridge<T> extends Object implements Factory<T>
HK2 Factory
and JDK Supplier
. Using this class Supplier
is able to behave as a factory in service locator. The bridge just delegates all invocations to provided ServiceLocator
and therefore all operation should be in proper scope and context.
This bridge is dedicated to instance binding therefore underlying supplier
is always only single instance.
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.