Package org.microbean.scopelet
package org.microbean.scopelet
Provides classes and interfaces implementing scopelets, lifecycle managers for beans.
- Author:
- Laird Nelson
-
ClassDescriptionA
ScopeletException
indicating that during contextual instance creation a cycle was detected.Instance<I>AnAutoCloseable
pairing of a contextual instance that can be destroyed with aInstance.Destructor
that can destroy it and aDestruction
view of theCreation
that caused it to be created.An interface whose implementations can destroy contextual instances.MapBackedScopelet<M extends MapBackedScopelet<M>>A thread-safe, partialScopelet
implementation backed byConcurrentMap
machinery.AScopelet
implementation that does not cache objects at all.AnInstances
implementation that is based on scopes.A manager of object lifespans on behalf of one or more notional scopes.ARuntimeException
indicating a problem with aScopelet
.AMapBackedScopelet
implementation that caches singletons.AScopeletException
indicating that there were too many activeScopelet
s when zero or one was expected.