Package | Description |
---|---|
com.vanillasource.jaywire | |
com.vanillasource.jaywire.serialization | |
com.vanillasource.jaywire.standalone | |
com.vanillasource.jaywire.web |
Modifier and Type | Field and Description |
---|---|
static Scope |
Scope.FACTORY
Always uses the given factory, for each request.
|
Modifier and Type | Method and Description |
---|---|
Scope |
SingletonScopeSupport.getSingletonScope()
Returns a scope that will instantiate only once for each given
supplier class.
|
Scope |
ThreadLocalScopeSupport.getThreadLocalScope()
Returns a scope that will instantiate only once for each new
thread.
|
Modifier and Type | Class and Description |
---|---|
class |
SerializableScope
A scope implementation that delegates to a given scope when directly asked for
objects or suppliers.
|
Modifier and Type | Method and Description |
---|---|
default Scope |
SerializationModule.makeScopeSerializable(SerializableSupplier<Scope> scopeSupplier) |
Scope |
SerializationSupport.makeScopeSerializable(SerializableSupplier<Scope> scopeSupplier)
Make a scope serializable by providing a serializable supplier that
can produce said scope.
|
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.
|
Modifier and Type | Method and Description |
---|---|
default Scope |
SerializationModule.makeScopeSerializable(SerializableSupplier<Scope> scopeSupplier) |
Scope |
SerializationSupport.makeScopeSerializable(SerializableSupplier<Scope> scopeSupplier)
Make a scope serializable by providing a serializable supplier that
can produce said scope.
|
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) |
SerializableScope(Scope delegate,
SerializableScope.SerializableSupplier<Scope> indirectDelegateSupplier) |
Constructor and Description |
---|
IndirectSerializableSupplier(Scope delegate,
SerializableScope.SerializableSupplier<Scope> indirectDelegateSupplier,
Factory<T> factory) |
SerializableScope(Scope delegate,
SerializableScope.SerializableSupplier<Scope> indirectDelegateSupplier) |
Modifier and Type | Class and Description |
---|---|
class |
SingletonScope
An implementation of a singleton scope that keeps all
already instantiated objects in an internal map indexed by
the kind object returned by the factory.
|
class |
ThreadLocalScope
An implementation of a thread local scope that is basically
a singleton scope in a thread local variable.
|
Modifier and Type | Method and Description |
---|---|
Scope |
SerializableSingletonScopeModule.getSingletonScope() |
default Scope |
ThreadLocalScopeModule.getThreadLocalScope() |
Modifier and Type | Class and Description |
---|---|
class |
HttpSessionScope |
class |
ServletRequestScope |
class |
ThreadLocalStorageScope<S>
An scope that stores all kinds in a "storage" object
that is kept as a thread-local variable.
|
Modifier and Type | Method and Description |
---|---|
default Scope |
ServletRequestScopeModule.getRequestScope() |
Scope |
RequestScopeSupport.getRequestScope()
Returns a scope that will instantiate objects only once
for one call/request.
|
default Scope |
HttpSessionScopeModule.getSessionScope() |
Scope |
SessionScopeSupport.getSessionScope()
Returns a scope that will instantiate objects only once
for one session.
|
Copyright © 2016. All rights reserved.