public interface Scope
Modifier and Type | Field and Description |
---|---|
static Scope |
FACTORY
Always uses the given factory, for each request.
|
Modifier and Type | Method and Description |
---|---|
default <T> Supplier<T> |
apply(Factory<T> factory)
Apply the semantics of this scope to the provided supplier.
|
<T> T |
get(Factory<T> factory)
Get an instance of the given factory for this scope.
|
static final Scope FACTORY
<T> T get(Factory<T> factory)
Copyright © 2016. All rights reserved.