public interface SingletonScopeSupport
Modifier and Type | Method and Description |
---|---|
Scope |
getSingletonScope()
Returns a scope that will instantiate only once for each given
supplier class.
|
default <T> T |
singleton(Factory<T> factory)
Convenience method to produce singleton objects easily.
|
default <T> Supplier<T> |
singletonSupplier(Factory<T> factory)
Convenience method to produce a
Supplier easily. |
Copyright © 2016. All rights reserved.