Package org.microbean.bean
package org.microbean.bean
Provides classes and interfaces related to implementing beans.
- Author:
- Laird Nelson
-
ClassDescriptionAn object with dependencies.A
ReductionException
indicating that many contextual instances could not be reduced to one.Assignment<R>An assignment of a contextual reference to anAttributedElement
, usually as completed by aReferences
.A reigstry ofAutoCloseable
instances that itself isAutoCloseable
.Bean<I>ARuntimeException
indicating that an error has occurred in code in this package.AMatcher
encapsulating CDI-compatible bean qualifier matching rules.A pairing of anAttributedType
and aBean
resulting from a reduction.An immutableAbstractList
ofTypeMirror
s that contains only legal bean types, sorted in a specific manner.AnAbstractTypeMatcher
encapsulating CDI-compatible type matching rules.A utility for working with bean types.Constant<I>AFactory
that returns its singleton from itsConstant.create(Request)
method.Creation<I>A representation of aFactory
's creation activity.ABeanException
indicating a problem with creation.A straightforwardAutoCloseableRegistry
implementation.An object describing the imminent destruction of a contextual instance by theFactory.destroy(Object, Destruction)
method.ABeanException
indicating a problem with destruction.AnAutoCloseable
WeakReference
that formally disposes of referents after they have been cleared by the Java Virtual Machine during garbage collection.Factory<I>A source of (normally new) contextual instances.An identifier for aBean
.A utility class providing methods that work with interceptor bindings.AMatcher
encapsulating CDI-compatible interceptor binding matching rules.An interface whose implementations can be ranked numerically in descending order (the highest or greatest rank outranks, or wins, or trumps, or comes first).RankedReducer<C,T extends Ranked> Reducer<C,T> A functional interface whose implementations can either reduce a suppliedList
of elements representing a successful selection to a single element normally drawn or calculated from the selection according to some criteria, or fail gracefully in the face of ambiguity by invoking a supplied failure handler.Reducible<C,T> A functional interface whose implementations can reduce an unspecified notional collection of elements to a single element according to some criteria.ABeanException
concerning problematic reductions.References<R>AnIterable
providing access to contextual references of a given type, and aReferencesSelector
providing access to aReferences
of a different type.A supplier ofReferences
objects.Selectable<C,T> A notional list of elements from which sublists may be selected according to some criteria.AReductionException
indicating that a reduction did not occur because there were no elements to reduce.