Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- Aggregate - Interface in org.microbean.bean
-
An object with dependencies.
- alternate() - Method in record class org.microbean.bean.Bean
- alternate() - Method in record class org.microbean.bean.Id
-
Returns the value of the
alternate
record component. - alternate() - Method in interface org.microbean.bean.Ranked
-
Returns
true
if thisRanked
is to be considered an alternate, which may have an effect on how the return value of theRanked.rank()
method is interpreted in some situations. - alternates() - Method in exception class org.microbean.bean.AmbiguousReductionException
-
Returns the contextual instances that could not be reduced.
- AmbiguousReductionException - Exception Class in org.microbean.bean
-
A
ReductionException
indicating that many contextual instances could not be reduced to one. - AmbiguousReductionException(Object, Collection<?>, String) - Constructor for exception class org.microbean.bean.AmbiguousReductionException
-
Creates a new
AmbiguousReductionException
. - anyInterceptorBinding() - Static method in class org.microbean.bean.InterceptorBindings
-
Returns a
NamedAttributeMap
representing the any interceptor binding. - anyInterceptorBinding(NamedAttributeMap<?>) - Static method in class org.microbean.bean.InterceptorBindings
-
Returns
true
if and only if the suppliedNamedAttributeMap
represents the any interceptor binding. - apply(I, Request<I>) - Method in interface org.microbean.bean.InterceptionsApplicator
-
Installs around-invoke method interceptions on the supplied contextual instance, which is presumed to have been fully initialized, and returns the result.
- assign(Request<?>) - Method in interface org.microbean.bean.Aggregate
-
Assigns a contextual reference to each of this
Aggregate
'sAttributedElement
instances and returns the resultingList
ofAssignment
s. - assign(Request<?>) - Method in class org.microbean.bean.InterceptingProducer
-
Calls the
assign(Request)
method on theProducer
supplied at construction time with the suppliedRequest
and returns the result. - assignee() - Method in record class org.microbean.bean.Assignment
-
Returns the value of the
assignee
record component. - Assignment<R> - Record Class in org.microbean.bean
- Assignment(AttributedElement, R) - Constructor for record class org.microbean.bean.Assignment
-
Creates a new
Assignment
. - AttributedElement - Record Class in org.microbean.bean
- AttributedElement(Element, List<NamedAttributeMap<?>>) - Constructor for record class org.microbean.bean.AttributedElement
-
Creates a new
AttributedElement
. - attributedType() - Method in record class org.microbean.bean.AttributedElement
-
Returns this
AttributedElement
'sAttributedType
. - attributedType() - Method in record class org.microbean.bean.BeanReduction
-
Returns the value of the
attributedType
record component. - AttributedType - Record Class in org.microbean.bean
- AttributedType(TypeMirror) - Constructor for record class org.microbean.bean.AttributedType
-
Creates a new
AttributedType
. - AttributedType(TypeMirror, List<NamedAttributeMap<?>>) - Constructor for record class org.microbean.bean.AttributedType
-
Creates a new
AttributedType
. - attributes() - Method in record class org.microbean.bean.AttributedElement
-
Returns the value of the
attributes
record component. - attributes() - Method in record class org.microbean.bean.AttributedType
-
Returns the value of the
attributes
record component. - attributes() - Method in record class org.microbean.bean.Id
-
Returns the value of the
attributes
record component. - AutoCloseableRegistry - Interface in org.microbean.bean
-
A reigstry of
AutoCloseable
instances that itself isAutoCloseable
.
B
- bean() - Method in record class org.microbean.bean.BeanReduction
-
Returns the value of the
bean
record component. - Bean<I> - Record Class in org.microbean.bean
- Bean(Id, Factory<I>) - Constructor for record class org.microbean.bean.Bean
-
Creates a new
Bean
. - BeanException - Exception Class in org.microbean.bean
-
A
RuntimeException
indicating that an error has occurred in code in this package. - BeanException() - Constructor for exception class org.microbean.bean.BeanException
-
Creates a new
BeanException
. - BeanException(String) - Constructor for exception class org.microbean.bean.BeanException
-
Creates a new
BeanException
. - BeanException(String, Throwable) - Constructor for exception class org.microbean.bean.BeanException
-
Creates a new
BeanException
. - BeanException(Throwable) - Constructor for exception class org.microbean.bean.BeanException
-
Creates a new
BeanException
. - BeanQualifiersMatcher - Class in org.microbean.bean
-
A
Matcher
encapsulating CDI-compatible bean qualifier matching rules. - BeanQualifiersMatcher() - Constructor for class org.microbean.bean.BeanQualifiersMatcher
-
Creates a new
BeanQualifiersMatcher
. - beanReduction() - Method in interface org.microbean.bean.Request
-
Returns the
BeanReduction
describing thisRequest
in progress. - BeanReduction<I> - Record Class in org.microbean.bean
-
A pairing of an
AttributedType
and aBean
resulting from a reduction. - BeanReduction(AttributedType, Bean<I>) - Constructor for record class org.microbean.bean.BeanReduction
-
Creates a new
BeanReduction
. - Beans - Class in org.microbean.bean
- Beans(Selectable<AttributedType, Bean<?>>) - Constructor for class org.microbean.bean.Beans
-
Creates a new
Beans
. - Beans(Selectable<AttributedType, Bean<?>>, Reducible<AttributedType, Bean<?>>) - Constructor for class org.microbean.bean.Beans
-
Creates a new
Beans
. - BeanTypeList - Class in org.microbean.bean
-
An immutable
AbstractList
ofTypeMirror
s that contains only legal bean types, sorted in a specific manner. - BeanTypeMatcher - Class in org.microbean.bean
-
An
AbstractTypeMatcher
encapsulating CDI-compatible type matching rules. - BeanTypeMatcher(Domain) - Constructor for class org.microbean.bean.BeanTypeMatcher
-
Creates a new
BeanTypeMatcher
. - beanTypes(TypeMirror) - Method in class org.microbean.bean.BeanTypes
- BeanTypes - Class in org.microbean.bean
-
A utility for working with bean types.
- BeanTypes(Domain) - Constructor for class org.microbean.bean.BeanTypes
-
Creates a new
BeanTypes
.
C
- cachingSelectableOf(Matcher<? super AttributedType, ? super Id>, Map<? extends AttributedType, ? extends List<Bean<?>>>, Collection<? extends Bean<?>>) - Static method in class org.microbean.bean.Beans
-
Returns a new
Selectable
that caches its results. - cast() - Method in record class org.microbean.bean.Bean
-
Returns this
Bean
, forcibly cast appropriately. - child(BeanReduction<J>) - Method in interface org.microbean.bean.Request
-
Returns a
Request
that is conceptually a child of thisRequest
and that represents a request for a contextual reference satisfying the suppliedBeanReduction
. - clearCaches() - Method in class org.microbean.bean.BeanTypes
-
Clears caches that may be used internally by this
BeanTypes
. - close() - Method in interface org.microbean.bean.AutoCloseableRegistry
- close() - Method in class org.microbean.bean.DefaultAutoCloseableRegistry
- close() - Method in class org.microbean.bean.DisposableReference
-
Calls
Reference.enqueue()
. - closed() - Method in interface org.microbean.bean.AutoCloseableRegistry
- closed() - Method in class org.microbean.bean.DefaultAutoCloseableRegistry
- closed() - Method in class org.microbean.bean.DisposableReference
-
Calls
refersTo(null)
and returns the result. - Constant<I> - Record Class in org.microbean.bean
-
A
Factory
that returns its singleton from itsConstant.create(Request)
method. - Constant(I) - Constructor for record class org.microbean.bean.Constant
-
Creates a new
Constant
. - create(Request<I>) - Method in record class org.microbean.bean.Constant
-
Invokes the
Constant.singleton()
method and returns its result. - create(Request<I>) - Method in interface org.microbean.bean.Factory
-
Creates a new contextual instance, possibly using the supplied
Request
, if it is non-null
, to acquire its dependencies. - created(I) - Method in interface org.microbean.bean.Creation
-
Signals that the supplied
instance
has been created, typically by an invocation of aFactory
'screate(Request)
method, and is about to be made available for use. - Creation<I> - Interface in org.microbean.bean
-
A representation of a
Factory
's creation activity. - CreationException - Exception Class in org.microbean.bean
-
A
BeanException
indicating a problem with creation. - CreationException() - Constructor for exception class org.microbean.bean.CreationException
-
Creates a new
CreationException
. - CreationException(String) - Constructor for exception class org.microbean.bean.CreationException
-
Creates a new
CreationException
. - CreationException(String, Throwable) - Constructor for exception class org.microbean.bean.CreationException
-
Creates a new
CreationException
. - CreationException(Throwable) - Constructor for exception class org.microbean.bean.CreationException
-
Creates a new
CreationException
. - criteria() - Method in exception class org.microbean.bean.ReductionException
-
Returns this
ReductionException
's criteria object, which may benull
.
D
- DEFAULT_RANK - Static variable in interface org.microbean.bean.Ranked
-
The default rank (0) when returned by an implementation of the
Ranked.rank()
method. - DefaultAutoCloseableRegistry - Class in org.microbean.bean
-
A straightforward
AutoCloseableRegistry
implementation. - DefaultAutoCloseableRegistry() - Constructor for class org.microbean.bean.DefaultAutoCloseableRegistry
-
Creates a new
DefaultAutoCloseableRegistry
. - dependencies() - Method in interface org.microbean.bean.Aggregate
-
Returns an unmodifiable
SequencedSet
ofAttributedElement
instances. - dependencies() - Method in record class org.microbean.bean.Bean
- dependencies() - Method in class org.microbean.bean.InterceptingProducer
-
Calls the
dependencies()
method on theProducer
supplied at construction time and returns the result. - describeConstable() - Method in record class org.microbean.bean.AttributedElement
-
Returns an
Optional
containing aConstantDesc
describing thisAttributedType
, or an emptyOptional
if it could not be described. - describeConstable() - Method in record class org.microbean.bean.AttributedType
-
Returns an
Optional
containing aConstantDesc
describing thisAttributedType
, or an emptyOptional
if it could not be described. - describeConstable() - Method in record class org.microbean.bean.Bean
- describeConstable() - Method in class org.microbean.bean.BeanTypeList
- describeConstable() - Method in record class org.microbean.bean.Constant
- describeConstable() - Method in interface org.microbean.bean.Factory
-
Returns an
Optional
containing the nominal descriptor for this instance, if one can be constructed, or an emptyOptional
if one cannot be constructed. - describeConstable() - Method in record class org.microbean.bean.Id
- destroy(I, Request<I>) - Method in record class org.microbean.bean.Constant
- destroy(I, Request<I>) - Method in interface org.microbean.bean.Factory
-
Destroys the supplied contextual instance.
- destroys() - Method in record class org.microbean.bean.Constant
-
Returns
true
if and only if the return value of an invocation of theConstant.singleton()
method isAutoCloseable
. - destroys() - Method in interface org.microbean.bean.Factory
- DestructionException - Exception Class in org.microbean.bean
-
A
BeanException
indicating a problem with destruction. - DestructionException() - Constructor for exception class org.microbean.bean.DestructionException
-
Creates a new
DestructionException
. - DestructionException(String) - Constructor for exception class org.microbean.bean.DestructionException
-
Creates a new
DestructionException
. - DestructionException(String, Throwable) - Constructor for exception class org.microbean.bean.DestructionException
-
Creates a new
DestructionException
. - DestructionException(Throwable) - Constructor for exception class org.microbean.bean.DestructionException
-
Creates a new
DestructionException
. - DisposableReference<R> - Class in org.microbean.bean
-
An
AutoCloseable
WeakReference
that formally disposes of referents after they have been cleared by the Java Virtual Machine during garbage collection. - DisposableReference(R, Consumer<? super R>) - Constructor for class org.microbean.bean.DisposableReference
-
Creates a new
DisposableReference
. - dispose() - Method in class org.microbean.bean.DisposableReference
-
If there has been no prior successful invocation of this method, calls the
accept(Object)
method on theConsumer
representing the disposer supplied at construction time, thus notionally disposing the referent supplied at construction time, and returnstrue
. - dispose(I, Request<I>) - Method in class org.microbean.bean.InterceptingProducer
-
Calls the
dispose(Object, Request)
method on theProducer
supplied at construction time with the suppliedi
and the suppliedRequest
. - dispose(I, Request<I>) - Method in interface org.microbean.bean.Producer
-
Disposes of the supplied contextual instance.
- disposed() - Method in class org.microbean.bean.DisposableReference
-
Returns
true
if and only if there has been a prior successful invocation ofDisposableReference.dispose()
that returnedtrue
.
E
- element() - Method in record class org.microbean.bean.AttributedElement
-
Returns the value of the
element
record component. - EMPTY_ASSIGNMENTS - Static variable in interface org.microbean.bean.Aggregate
-
An immutable, empty
SequencedSet
ofAssignment
s. - EMPTY_DEPENDENCIES - Static variable in interface org.microbean.bean.Aggregate
-
An immutable, empty
SequencedSet
ofAttributedElement
s. - equals(Object) - Method in record class org.microbean.bean.Assignment
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.microbean.bean.AttributedElement
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.microbean.bean.AttributedType
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.microbean.bean.Bean
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.microbean.bean.BeanReduction
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.microbean.bean.Constant
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.microbean.bean.Id
-
Indicates whether some other object is "equal to" this one.
F
- factory() - Method in record class org.microbean.bean.Bean
-
Returns the value of the
factory
record component. - Factory<I> - Interface in org.microbean.bean
-
A creator and destroyer of contextual instances of a particular type.
- fail(List<? extends T>, C) - Static method in interface org.microbean.bean.Reducer
-
Throws an
UnsatisfiedReductionException
ifelements
is empty, throws anAmbiguousReductionException
if the size ofelements
is greater than1
, and returns the sole element ofelements
otherwise.
G
- get(int) - Method in class org.microbean.bean.BeanTypeList
- governingScopeId() - Method in record class org.microbean.bean.Id
-
Returns the value of the
governingScopeId
record component.
H
- hashCode() - Method in record class org.microbean.bean.Assignment
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.microbean.bean.AttributedElement
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.microbean.bean.AttributedType
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.microbean.bean.Bean
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.microbean.bean.BeanReduction
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.microbean.bean.Constant
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.microbean.bean.Id
-
Returns a hash code value for this object.
I
- id() - Method in record class org.microbean.bean.Bean
-
Returns the value of the
id
record component. - Id - Record Class in org.microbean.bean
-
An identifier for a
Bean
. - Id(BeanTypeList, List<NamedAttributeMap<?>>, NamedAttributeMap<?>) - Constructor for record class org.microbean.bean.Id
-
Creates a new
Id
that is not an alternate and that has a default rank. - Id(BeanTypeList, List<NamedAttributeMap<?>>, NamedAttributeMap<?>, boolean, int) - Constructor for record class org.microbean.bean.Id
-
Creates a new
Id
. - Id(BeanTypeList, List<NamedAttributeMap<?>>, NamedAttributeMap<?>, int) - Constructor for record class org.microbean.bean.Id
-
Creates a new
Id
that is not an alternate. - IdMatcher - Class in org.microbean.bean
- IdMatcher(BeanQualifiersMatcher, InterceptorBindingsMatcher, BeanTypeMatcher) - Constructor for class org.microbean.bean.IdMatcher
-
Creates a new
IdMatcher
. - initialize(I, Request<I>) - Method in interface org.microbean.bean.Initializer
-
Initializes the supplied contextual instance, possibly using the supplied
Request
to obtain supporting contextual references. - Initializer<I> - Interface in org.microbean.bean
-
An interface whose implementations initialize contextual instances.
- InterceptingProducer<I> - Class in org.microbean.bean
-
A
Producer
that applies constructor interception to produce contextual instances. - InterceptingProducer(Collection<? extends InterceptorMethod>, Producer<I>) - Constructor for class org.microbean.bean.InterceptingProducer
-
Creates a new
InterceptingProducer
. - InterceptionsApplicator<I> - Interface in org.microbean.bean
-
An interface whose implementations install around-invoke interceptions.
- interceptorBinding() - Static method in class org.microbean.bean.InterceptorBindings
-
Returns a
NamedAttributeMap
representing the interceptor binding (meta-) interceptor binding. - interceptorBinding(NamedAttributeMap<?>) - Static method in class org.microbean.bean.InterceptorBindings
-
Returns
true
if and only if the suppliedNamedAttributeMap
is itself aNamedAttributeMap
that can be used to designate otherNamedAttributeMap
s as interceptor bindings, or aNamedAttributeMap
so designated. - interceptorBindings(Collection<? extends NamedAttributeMap<?>>) - Static method in class org.microbean.bean.InterceptorBindings
-
Given a
Collection
ofNamedAttributeMap
s, returns an immutableList
consisting of thoseNamedAttributeMap
instances that are deemed to be interceptor bindings. - InterceptorBindings - Class in org.microbean.bean
-
A utility class providing methods that work with interceptor bindings.
- InterceptorBindingsMatcher - Class in org.microbean.bean
-
A
Matcher
encapsulating CDI-compatible interceptor binding matching rules. - InterceptorBindingsMatcher() - Constructor for class org.microbean.bean.InterceptorBindingsMatcher
-
Creates a new
InterceptorBindingsMatcher
. - interfaceIndex() - Method in class org.microbean.bean.BeanTypeList
-
Returns the index of the first interface type this
BeanTypeList
contains, or a negative value if it contains no interface types. - isEmpty() - Method in class org.microbean.bean.BeanTypeList
L
- legalBeanType(TypeMirror) - Static method in class org.microbean.bean.BeanTypes
-
Returns
true
if and only if the suppliedTypeMirror
is a legal bean type. - list() - Method in interface org.microbean.bean.Selectable
-
Returns an immutable
List
of all of thisSelectable
's elements.
N
- newChild() - Method in interface org.microbean.bean.AutoCloseableRegistry
-
Returns a new
AutoCloseableRegistry
instance that is not closed, has no registrations yet, and is registered with thisAutoCloseableRegistry
. - newChild() - Method in class org.microbean.bean.DefaultAutoCloseableRegistry
-
Returns a new
DefaultAutoCloseableRegistry
instance that is not closed, has no registrations yet, and is registered with thisDefaultAutoCloseableRegistry
.
O
- of() - Static method in class org.microbean.bean.RankedReducer
-
Returns a
RankedReducer
implementation. - of() - Static method in interface org.microbean.bean.Selectable
- of(Collection<? extends E>, BiFunction<? super E, ? super C, ? extends Boolean>) - Static method in interface org.microbean.bean.Selectable
-
Returns a
Selectable
using the suppliedCollection
as its elements, and the suppliedBiFunction
as its selector function. - of(Selectable<C, E>, Reducer<C, E>) - Static method in interface org.microbean.bean.Reducible
-
Calls the
Reducible.of(Selectable, Reducer, BiFunction)
method with the suppliedselectable
, the suppliedr
, and a reference to theReducer.fail(List, Object)
method, and returns the result. - of(Selectable<C, E>, Reducer<C, E>, BiFunction<? super List<? extends E>, ? super C, ? extends E>) - Static method in interface org.microbean.bean.Reducible
- of(Domain, Collection<? extends TypeMirror>) - Static method in class org.microbean.bean.BeanTypeList
-
Returns a non-
null
BeanTypeList
suitable for the supplied arguments. - ofCaching(Collection<? extends E>, BiFunction<? super E, ? super C, ? extends Boolean>) - Static method in interface org.microbean.bean.Selectable
-
Returns a
Selectable
using the suppliedCollection
as its elements, and the suppliedBiFunction
as its selector function. - ofCaching(Selectable<C, E>, Reducer<C, E>) - Static method in interface org.microbean.bean.Reducible
-
Calls the
Reducible.ofCaching(Selectable, Reducer, BiFunction)
method with the suppliedselectable
, the suppliedr
, the suppliedfailureHandler
, and a reference to theReducer.fail(List, Object)
method, and returns its result. - ofCaching(Selectable<C, E>, Reducer<C, E>, BiFunction<? super List<? extends E>, ? super C, ? extends E>) - Static method in interface org.microbean.bean.Reducible
-
Calls the
Reducible.ofCaching(Selectable, Reducer, BiFunction, BiFunction)
method with the suppliedselectable
, the suppliedr
, the suppliedfh
, and a reference to thecomputeIfAbsent(Object, Function)
method of a newConcurrentHashMap
, and returns its result. - ofCaching(Selectable<C, E>, Reducer<C, E>, BiFunction<? super List<? extends E>, ? super C, ? extends E>, BiFunction<? super C, Function<C, E>, ? extends E>) - Static method in interface org.microbean.bean.Reducible
-
Returns a
Reducible
implementation that uses the suppliedReducer
for its reduction operations and the suppliedcomputeIfAbsent
BiFunction
for its caching implementation. - ofFailing() - Static method in interface org.microbean.bean.Reducer
-
Returns a
Reducer
whoseReducer.reduce(List, Object, BiFunction)
method, for a givenList
of elements, returns the result of invoking its supplied failure handler. - ofSimple() - Static method in interface org.microbean.bean.Reducer
- org.microbean.bean - module org.microbean.bean
-
Provides packages related to implementing beans.
- org.microbean.bean - package org.microbean.bean
-
Provides classes and interfaces related to implementing beans.
- outranks(int) - Method in interface org.microbean.bean.Ranked
-
Returns
true
if thisRanked
bears a rank that outranks the rank represented byj
according to the rules described in the specification for theoutranks(int, int)
method. - outranks(int, int) - Static method in interface org.microbean.bean.Ranked
-
Returns
true
if and only if a rank represented byi
outranks a rank represented byj
. - outranks(Ranked) - Method in interface org.microbean.bean.Ranked
-
Returns
true
if thisRanked
outranks the suppliedRanked
according to the rules described in the specification for theoutranks(int, int)
method. - outranks(Ranked, Ranked) - Static method in interface org.microbean.bean.Ranked
P
- postInitialize(I, Request<I>) - Method in interface org.microbean.bean.PostInitializer
-
Completes the initialization of a contextual instance and returns the result.
- PostInitializer<I> - Interface in org.microbean.bean
-
An interface whose implementations complete initialization of contextual instances.
- preDestroy(I, Request<I>) - Method in interface org.microbean.bean.PreDestructor
-
Performs pre-destruction logic for the supplied contextual instance.
- PreDestructor<I> - Interface in org.microbean.bean
-
An interface whose implementation perform pre-destruction logic for contextual instances.
- produce(SequencedSet<? extends Assignment<?>>) - Method in class org.microbean.bean.InterceptingProducer
-
Calls the
produce(SequencedSet)
method on theProducer
supplied at construction time with the suppliedassignments
and returns the result. - produce(SequencedSet<? extends Assignment<?>>) - Method in interface org.microbean.bean.Producer
-
Produces a new contextual instance and returns it, possibly (often) making use of the supplied, dependent, contextual references.
- produce(Request<?>) - Method in class org.microbean.bean.InterceptingProducer
-
Produces a potentially uninitialized contextual instance and returns it, using the
Collection
ofInterceptorMethod
s supplied at construction time to intercept the production. - produce(Request<?>) - Method in interface org.microbean.bean.Producer
-
Produces a new contextual instance and returns it by calling the
Producer.produce(SequencedSet)
method with the return value of an invocation of theAggregate.assign(Request)
method with the suppliedRequest
. - Producer<I> - Interface in org.microbean.bean
-
An interface whose implementations produce possibly uninitialized contextual instances.
R
- rank() - Method in record class org.microbean.bean.Bean
- rank() - Method in record class org.microbean.bean.Id
-
Returns the value of the
rank
record component. - rank() - Method in interface org.microbean.bean.Ranked
-
Returns the rank of this
Ranked
implementation. - Ranked - Interface in org.microbean.bean
-
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> - Class in org.microbean.bean - reduce(C) - Method in interface org.microbean.bean.Reducible
-
Given a criteria object, which may be
null
, returns an object that represents the reduction of a notional collection of objects. - reduce(List<? extends T>, C) - Method in interface org.microbean.bean.Reducer
-
Invokes the
Reducer.reduce(List, Object, BiFunction)
method with the supplied arguments and a reference to theReducer.fail(List, Object)
method, and returns the result. - reduce(List<? extends T>, C, BiFunction<? super List<? extends T>, ? super C, ? extends T>) - Method in class org.microbean.bean.RankedReducer
- reduce(List<? extends T>, C, BiFunction<? super List<? extends T>, ? super C, ? extends T>) - Method in interface org.microbean.bean.Reducer
-
Performs some kind of reductive or filtering operation on the supplied
List
, according to the supplied criteria, and returns the single result, or, if reduction fails, invokes the suppliedBiFunction
with a sublist representing a partial reduction (or an empty list representing a reduction that simply could not be performed), along with the supplied criteria, and returns its result. - reduce(AttributedType) - Method in class org.microbean.bean.Beans
- reduce(Selectable<? super C, ? extends T>, C) - Method in interface org.microbean.bean.Reducer
-
Invokes the
Reducer.reduce(List, Object, BiFunction)
method with the return value of an invocation of theselect(Object)
method on the suppliedSelectable
supplied withc
, and the suppliedc
and a reference to thefail(List, Object)
method, and returns the result. - reduce(Selectable<? super C, ? extends T>, C, BiFunction<? super List<? extends T>, ? super C, ? extends T>) - Method in interface org.microbean.bean.Reducer
-
Invokes the
Reducer.reduce(List, Object, BiFunction)
method with the return value of an invocation of theselect(Object)
method on the suppliedSelectable
supplied withc
, and the suppliedc
andfailureHandler
arguments, and returns the result. - Reducer<C,
T> - Interface in org.microbean.bean -
A functional interface whose implementations can either reduce a supplied
List
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> - Interface in org.microbean.bean -
A functional interface whose implementations can reduce an unspecified notional collection of elements to a single element according to some criteria.
- ReductionException - Exception Class in org.microbean.bean
-
A
BeanException
concerning problematic reductions. - ReductionException(Object, String, Throwable) - Constructor for exception class org.microbean.bean.ReductionException
-
Creates a new
ReductionException
. - reference(AttributedType) - Method in interface org.microbean.bean.Request
-
Acquires a contextual reference that matches the supplied
AttributedType
and returns it. - reference(AttributedType, Bean<R>, Creation<R>) - Method in interface org.microbean.bean.Request
-
Returns a contextual reference that matches the supplied
AttributedType
, using the suppliedBean
to disambiguate otherwise ambiguous contextual reference selections. - reference(AttributedType, Creation<R>) - Method in interface org.microbean.bean.Request
-
Returns a contextual reference that matches the supplied
AttributedType
. - register(AutoCloseable) - Method in interface org.microbean.bean.AutoCloseableRegistry
-
If this
AutoCloseableRegistry
is not closed, and if the suppliedAutoCloseable
has not yet been registered, registers it such that it will be closed when thisAutoCloseableRegistry
is closed, and returnstrue
. - register(AutoCloseable) - Method in class org.microbean.bean.DefaultAutoCloseableRegistry
-
If this
DefaultAutoCloseableRegistry
is not closed, and if the suppliedAutoCloseable
has not yet been registered, registers it such that it will be closed when thisDefaultAutoCloseableRegistry
is closed, and returnstrue
. - Request<I> - Interface in org.microbean.bean
-
A request for a contextual reference of a particular attributed type, along with functionality to help fulfil the request.
- returnNull(A, B) - Static method in interface org.microbean.bean.Reducer
-
Returns
null
when invoked, regardless of arguments.
S
- select(C) - Method in interface org.microbean.bean.Selectable
-
Selects and returns an immutable
List
representing a sublist of thisSelectable
's elements, as mediated by the supplied criteria. - select(AttributedType) - Method in class org.microbean.bean.Beans
- Selectable<C,
T> - Interface in org.microbean.bean -
A notional list of elements from which sublists may be selected according to some criteria.
- singleton() - Method in record class org.microbean.bean.Constant
-
Returns the value of the
singleton
record component. - singleton() - Method in interface org.microbean.bean.Factory
-
Returns the sole contextual instance of this
Factory
's type, if there is one, ornull
in the very common case that there is not. - size() - Method in class org.microbean.bean.BeanTypeList
T
- targetClassInterceptorBinding(String) - Static method in class org.microbean.bean.InterceptorBindings
-
Returns a
NamedAttributeMap
representing a target class interceptor binding. - targetClassInterceptorBinding(NamedAttributeMap<?>) - Static method in class org.microbean.bean.InterceptorBindings
-
Returns
true
if and only if the suppliedNamedAttributeMap
is a target class interceptor binding. - test(Collection<? extends NamedAttributeMap<?>>, Collection<? extends NamedAttributeMap<?>>) - Method in class org.microbean.bean.BeanQualifiersMatcher
-
Returns
true
if and only if either (a) the collection of qualifiers present inreceiverAttributes
is empty and either the collection of qualifiers present inpayloadAttributes
is also empty or contains the default qualifier, or (b) if the collection of qualifiers present inpayloadAttributes
is empty or the return value ofQualifiers.anyAndDefaultQualifiers()
contains all of the qualifiers present inreceiverAttributes
, or (c) if the collection of qualifiers present inpayloadAttributes
contains all of the qualifiers present inreceiverAttributes
. - test(Collection<? extends NamedAttributeMap<?>>, Collection<? extends NamedAttributeMap<?>>) - Method in class org.microbean.bean.InterceptorBindingsMatcher
-
Returns
true
if and only if either (a) both the collection of interceptor bindings present inreceiverAttributes
and the collection of interceptor bindings present inpayloadAttributes
are empty, or (b) if the collection of interceptor bindings present inpayloadAttributes
has only one element and that element is the any interceptor binding, or (c) the sizes of the collection of interceptor bindings present inreceiverAttributes
and the collection of interceptor bindings present inpayloadAttributes
are the same and the collection of interceptor bindings present inreceiverAttributes
contains all the collection of interceptor bindings present inpayloadAttributes
and the collection of interceptor bindings present inpayloadAttributes
contains all the collection of interceptor bindings present inreceiverAttributes
. - test(TypeMirror, Iterable<? extends TypeMirror>) - Method in class org.microbean.bean.IdMatcher
-
Tests the supplied
Iterable
ofTypeMirror
s to see if at least oneTypeMirror
it yields matches the suppliedTypeMirror
and returns the result. - test(TypeMirror, TypeMirror) - Method in class org.microbean.bean.BeanTypeMatcher
-
Returns
true
if and only if the suppliedpayload
argument matches the suppliedreceiver
argument, according to the rules defined by section 2.4.2.1 of the CDI specification. - test(AttributedType, Id) - Method in class org.microbean.bean.IdMatcher
-
Tests the supplied
Id
to see if it matches the suppliedAttributedType
and returns the result. - toString() - Method in record class org.microbean.bean.Assignment
-
Returns a string representation of this record class.
- toString() - Method in record class org.microbean.bean.AttributedElement
-
Returns a string representation of this record class.
- toString() - Method in record class org.microbean.bean.AttributedType
-
Returns a string representation of this record class.
- toString() - Method in record class org.microbean.bean.Bean
-
Returns a string representation of this record class.
- toString() - Method in record class org.microbean.bean.BeanReduction
-
Returns a string representation of this record class.
- toString() - Method in record class org.microbean.bean.Constant
-
Returns a string representation of this record class.
- toString() - Method in record class org.microbean.bean.Id
-
Returns a string representation of this record class.
- toString() - Method in exception class org.microbean.bean.ReductionException
-
Returns a
String
reprsentation of thisReductionException
. - type() - Method in record class org.microbean.bean.AttributedElement
-
Returns this
AttributedElement
's type. - type() - Method in record class org.microbean.bean.AttributedType
-
Returns the value of the
type
record component. - types() - Method in record class org.microbean.bean.Id
-
Returns the value of the
types
record component.
U
- UnsatisfiedReductionException - Exception Class in org.microbean.bean
-
A
ReductionException
indicating that a reduction did not occur because there were no elements to reduce. - UnsatisfiedReductionException(Object, String, Throwable) - Constructor for exception class org.microbean.bean.UnsatisfiedReductionException
-
Creates a new
UnsatisfiedReductionException
.
V
- value() - Method in record class org.microbean.bean.Assignment
-
Returns the value of the
value
record component.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form