Package | Description |
---|---|
com.vanillasource.jaywire | |
com.vanillasource.jaywire.serialization | |
com.vanillasource.jaywire.standalone | |
com.vanillasource.jaywire.web |
Modifier and Type | Method and Description |
---|---|
default <T> Supplier<T> |
Scope.apply(Factory<T> factory)
Apply the semantics of this scope to the provided supplier.
|
<T> T |
Scope.get(Factory<T> factory)
Get an instance of the given factory for this scope.
|
default <T> T |
SingletonScopeSupport.singleton(Factory<T> factory)
Convenience method to produce singleton objects easily.
|
default <T> Supplier<T> |
SingletonScopeSupport.singletonSupplier(Factory<T> factory)
Convenience method to produce a
Supplier easily. |
default <T> Supplier<T> |
ThreadLocalScopeSupport.threadLocal(Factory<T> supplier)
Convenience method to produce thread local supplier easily.
|
Modifier and Type | Method and Description |
---|---|
<T> Supplier<T> |
SerializableScope.apply(Factory<T> factory)
Return a supplier that only indirectly refers to the delegate scope.
|
<T> T |
SerializableScope.get(Factory<T> factory) |
default Scope |
SerializationModule.makeScopeSerializableSingleton(Factory<Scope> scopeFactory) |
Scope |
SerializationSupport.makeScopeSerializableSingleton(Factory<Scope> scopeSerializableFactory)
Make a regular scope a singleton, and wrap so all produced
suppliers of this scope would be serializable themselves.
|
Constructor and Description |
---|
IndirectSerializableSupplier(Scope delegate,
SerializableScope.SerializableSupplier<Scope> indirectDelegateSupplier,
Factory<T> factory) |
Modifier and Type | Method and Description |
---|---|
<T> T |
SingletonScope.get(Factory<T> factory) |
<T> T |
ThreadLocalScope.get(Factory<T> factory) |
Modifier and Type | Method and Description |
---|---|
<T> T |
ThreadLocalStorageScope.get(Factory<T> factory) |
default <T> Supplier<T> |
RequestScopeSupport.requestScope(Factory<T> supplier)
Convenience method to produce request scope suppliers easily.
|
default <T> Supplier<T> |
SessionScopeSupport.sessionScope(Factory<T> supplier)
Convenience method to produce session scope suppliers easily.
|
Copyright © 2016. All rights reserved.