Index

A B C D E G H I M N O R S T 
All Classes and Interfaces|All Packages|Serialized Form

A

active() - Method in class org.microbean.scopelet.Scopelet
Returns true if and only if this Scopelet is active at the moment of the call.

B

bean() - Method in class org.microbean.scopelet.Scopelet
Returns a Bean for this Scopelet.

C

close() - Method in class org.microbean.scopelet.Instance
 
close() - Method in class org.microbean.scopelet.MapBackedScopelet
 
close() - Method in class org.microbean.scopelet.Scopelet
Irrevocably closes this Scopelet, and, by doing so, notionally makes it irrevocably inactive.
closed() - Method in class org.microbean.scopelet.Instance
Returns true if and only if this Instance has been closed.
closed() - Method in class org.microbean.scopelet.Scopelet
Returns true if and only if at the moment of invocation this Scopelet is (irrevocably) closed (and therefore also not active).
containsId(Object) - Method in class org.microbean.scopelet.Scopelet
Checks to see if this Scopelet is active and then returns true if and only if, at the moment of an invocation, this Scopelet is active and already contains an object identified by the supplied Object.
create(Request<S>) - Method in class org.microbean.scopelet.Scopelet
Creates this Scopelet by simply returning it.
CreationCycleDetectedException - Exception Class in org.microbean.scopelet
A ScopeletException indicating that during contextual instance creation a cycle was detected.
CreationCycleDetectedException() - Constructor for exception class org.microbean.scopelet.CreationCycleDetectedException

D

describeConstable() - Method in class org.microbean.scopelet.NoneScopelet
 
describeConstable() - Method in class org.microbean.scopelet.SingletonScopelet
 
destroy(I, Request<I>) - Method in interface org.microbean.scopelet.Instance.Destructor
Destroys the supplied contextual instance.
destroys() - Method in class org.microbean.scopelet.Scopelet
Returns true when invoked to indicate that Scopelet implementations destroy what they create.

E

equals(Object) - Method in class org.microbean.scopelet.Instance
 
equals(Object) - Method in class org.microbean.scopelet.Scopelet
Returns true if and only if the supplied Object is not null, has the same class as this Scopelet, has an Id equal to that of this Scopelet, and a scope identifier equal to that of this Scopelet.

G

get() - Method in class org.microbean.scopelet.Instance
Returns the contextual instance this Instance holds, which may be null.
get(Object) - Method in class org.microbean.scopelet.Scopelet
Checks to see if this Scopelet is active, and then returns the preexisting contextual instance identified by the supplied Object, or null if no such instance exists.
governedBy(NamedAttributeMap<?>) - Method in class org.microbean.scopelet.Scopelet
Returns true if this Scopelet is governed by the scope represented by the supplied NamedAttributeMap.
governingScopeId() - Method in class org.microbean.scopelet.Scopelet
Returns the NamedAttributeMap representing the identifier of the scope to which this Scopelet belongs.

H

hashCode() - Method in class org.microbean.scopelet.Instance
 
hashCode() - Method in class org.microbean.scopelet.Scopelet
Returns a hashcode for this Scopelet.

I

id() - Method in class org.microbean.scopelet.NoneScopelet
 
id() - Method in class org.microbean.scopelet.Scopelet
Returns an Id representing this Scopelet.
id() - Method in class org.microbean.scopelet.SingletonScopelet
 
InactiveScopeletException - Exception Class in org.microbean.scopelet
A ScopeletException indicating that a Scopelet was not active when it was supposed to be.
InactiveScopeletException() - Constructor for exception class org.microbean.scopelet.InactiveScopeletException
instance(Object, Factory<I>, Request<I>) - Method in class org.microbean.scopelet.MapBackedScopelet
 
instance(Object, Factory<I>, Request<I>) - Method in class org.microbean.scopelet.NoneScopelet
 
instance(Object, Factory<I>, Request<I>) - Method in class org.microbean.scopelet.Scopelet
Checks to see if this Scopelet is active and then returns a pre-existing or created-on-demand contextual instance suitable for the combination of identifier, Factory and Request.
instance(Request<I>) - Method in class org.microbean.scopelet.Scopelet
Checks to see if this Scopelet is active and then eturns a contextual instance identified by the identifying information present within the supplied Request, creating the instance and associating it with the identifying information present within the supplied Request if necessary.
Instance<I> - Class in org.microbean.scopelet
An AutoCloseable pairing of a contextual instance that can be destroyed with a Instance.Destructor that can destroy it, an AutoCloseable that can release its dependent objects when needed, and a Request that caused it to be created.
Instance(I, Instance.Destructor<I>, Request<I>) - Constructor for class org.microbean.scopelet.Instance
Creates a new Instance.
Instance.Destructor<I> - Interface in org.microbean.scopelet
An interface whose implementations can destroy contextual instances.

M

MapBackedScopelet<M> - Class in org.microbean.scopelet
A thread-safe, partial Scopelet implementation backed by ConcurrentMap machinery.
MapBackedScopelet(NamedAttributeMap<?>) - Constructor for class org.microbean.scopelet.MapBackedScopelet
Creates a new MapBackedScopelet.

N

NoneScopelet - Class in org.microbean.scopelet
A Scopelet implementation that does not cache objects at all.
NoneScopelet(Domain) - Constructor for class org.microbean.scopelet.NoneScopelet
Creates a new NoneScopelet.

O

org.microbean.scopelet - module org.microbean.scopelet
Provides packages related to implementing scopelets.
org.microbean.scopelet - package org.microbean.scopelet
Provides classes and interfaces implementing scopelets, lifecycle managers for beans.

R

remove(Object) - Method in class org.microbean.scopelet.MapBackedScopelet
 
remove(Object) - Method in class org.microbean.scopelet.Scopelet
Checks to see if this Scopelet is active and then removes any contextual instance stored under the supplied id, returning true if and only if removal actually took place.

S

scopeId() - Method in class org.microbean.scopelet.Scopelet
Returns the NamedAttributeMap that identifies this Scopelet's affiliated scope.
Scopelet<S> - Class in org.microbean.scopelet
A manager of object lifespans identified by a scope.
Scopelet(NamedAttributeMap<?>) - Constructor for class org.microbean.scopelet.Scopelet
Creates a new Scopelet.
ScopeletException - Exception Class in org.microbean.scopelet
A RuntimeException indicating a problem with a Scopelet.
ScopeletException() - Constructor for exception class org.microbean.scopelet.ScopeletException
Creates a new ScopeletException.
ScopeletException(String) - Constructor for exception class org.microbean.scopelet.ScopeletException
Creates a new ScopeletException.
ScopeletException(String, Throwable) - Constructor for exception class org.microbean.scopelet.ScopeletException
Creates a new ScopeletException.
ScopeletException(Throwable) - Constructor for exception class org.microbean.scopelet.ScopeletException
Creates a new ScopeletException.
singleton() - Method in class org.microbean.scopelet.Scopelet
Returns this Scopelet if it has been created via the Scopelet.create(Request) method, or null if that method has not yet been invoked.
SingletonScopelet - Class in org.microbean.scopelet
A MapBackedScopelet implementation that caches singletons.
SingletonScopelet(Domain) - Constructor for class org.microbean.scopelet.SingletonScopelet
Creates a new SingletonScopelet.

T

TooManyActiveScopeletsException - Exception Class in org.microbean.scopelet
A ScopeletException indicating that there were too many active Scopelets when zero or one was expected.
TooManyActiveScopeletsException() - Constructor for exception class org.microbean.scopelet.TooManyActiveScopeletsException
TooManyActiveScopeletsException(String) - Constructor for exception class org.microbean.scopelet.TooManyActiveScopeletsException
TooManyActiveScopeletsException(String, Throwable) - Constructor for exception class org.microbean.scopelet.TooManyActiveScopeletsException
TooManyActiveScopeletsException(Throwable) - Constructor for exception class org.microbean.scopelet.TooManyActiveScopeletsException
toString() - Method in class org.microbean.scopelet.Instance
 
A B C D E G H I M N O R S T 
All Classes and Interfaces|All Packages|Serialized Form