Uses of Interface
org.microbean.loader.api.Loader
Package
Description
Provides classes and interfaces related to the default implementation of the
microBean™ Loader API.
Provides classes and interfaces related to the microBean™ Loader API.
Provides classes and interfaces for implementing
Provider
s using MicroProfile
Config ConfigSource
constructs.Provides classes and interfaces related to the service provider interface of
the default
implementation of the microBean™ Loader API.
Provides classes and interfaces for implementing
Provider
s using Typesafe
Config constructs.-
Uses of Loader in org.microbean.loader
Modifier and TypeClassDescriptionclass
A subclassable defaultLoader
implementation that delegates its work toProvider
s and anAmbiguityHandler
.Modifier and TypeMethodDescriptionfinal Loader<?>
DefaultLoader.parent()
Returns theLoader
serving as the parent of thisDefaultLoader
.Modifier and TypeMethodDescriptionprotected Supplier<?>
If the suppliedabsolutePath
has a size of2
(the root plus a single name), returns a deterministicSupplier
whoseSupplier.get()
method returns the environment variable with that name, ornull
in all other cases.protected Supplier<?>
protected Supplier<?>
boolean
ProxyingProvider.isProxiable
(Loader<?> requestor, Path<? extends Type> absolutePath) Returnstrue
if the type identified by the suppliedabsolutePath
can be proxied.protected Object
ProxyingProvider.newProxyInstance
(Loader<?> requestor, Path<? extends Type> absolutePath, Class<?> interfaceToProxy) Invokes theProxy.newProxyInstance(ClassLoader, Class[], InvocationHandler)
method with appropriate arguments and returns the result.Overrides theAbstractProvider.path(Loader, Path)
method to return a (relative)Path
consisting solely of the last element of the suppliedabsolutePath
.Overrides theAbstractProvider.path(Loader, Path)
method to return a (relative)Path
consisting solely of the last element of the suppliedabsolutePath
. -
Uses of Loader in org.microbean.loader.api
Modifier and TypeMethodDescriptiondefault <L extends Loader<?>>
LCasts thisLoader
appropriately and returns it, usually so that an implementation's implementation-specific methods can be accessed.Modifier and TypeMethodDescriptiondefault <U> Loader<U>
Builds aPath
from the supplied arguments, calls theload(Path)
method and returns its result.default <U> Loader<U>
Builds aPath
from the supplied arguments, calls theload(Path)
method and returns its result.default <U> Loader<U>
Builds aPath
from the supplied arguments, calls theload(Path)
method and returns its result.default <U> Loader<U>
Builds aPath
from the supplied arguments, calls theload(Path)
method and returns its result.default <U> Loader<U>
Builds aPath
from the supplied arguments, calls theload(Path)
method and returns its result.default <U> Loader<U>
Builds aPath
from the supplied arguments, calls theload(Path)
method and returns its result.default <U> Loader<U>
Builds aPath
from the supplied arguments, calls theload(Path)
method and returns its result.default <U> Loader<U>
Builds aPath
from the supplied arguments, calls theload(Path)
method and returns its result.<U> Loader<U>
default <U> Loader<U>
Loader.load
(Qualifiers<? extends String, ?> qualifiers, Class<U> type) Builds aPath
from the supplied arguments, calls theload(Path)
method and returns its result.default <U> Loader<U>
Loader.load
(Qualifiers<? extends String, ?> qualifiers, Type type) Builds aPath
from the supplied arguments, calls theload(Path)
method and returns its result.default <U> Loader<U>
Loader.load
(Qualifiers<? extends String, ?> qualifiers, org.microbean.type.JavaType.Token<U> type) Builds aPath
from the supplied arguments, calls theload(Path)
method and returns its result.default <U> Loader<U>
Loader.load
(org.microbean.type.JavaType.Token<U> type) Builds aPath
from the supplied arguments, calls theload(Path)
method and returns its result.default <U> Loader<U>
Builds aPath
from the supplied arguments, calls theload(Path)
method and returns its result.default <U> Loader<U>
Builds aPath
from the supplied arguments, calls theload(Path)
method and returns its result.default <U> Loader<U>
Builds aPath
from the supplied arguments, calls theload(Path)
method and returns its result.static Loader<?>
Loader.loader()
Bootstraps and returns aLoader
.default Loader<?>
Returns an ancestralLoader
, derived from and possibly identical to thisLoader
, that is suitable for a transliterated and absolute version of the suppliedpath
, particularly for cases where, during the execution of theload(Path)
method, aLoader
must be supplied to some other class.Loader<?>
Loader.parent()
default Loader<?>
Loader.root()
-
Uses of Loader in org.microbean.loader.jackson
Modifier and TypeMethodDescriptionprotected final ObjectCodec
InputStreamJacksonProvider.objectCodec
(Loader<?> requestingLoader, Path<? extends Type> absolutePath) Invokes theBiFunction.apply(Object, Object)
method of theobjectCodecFunction
supplied at construction time and returns the result.protected abstract ObjectCodec
JacksonProvider.objectCodec
(Loader<?> requestor, Path<? extends Type> absolutePath) Returns anObjectCodec
suitable for the combination of the suppliedLoader
andPath
, ornull
if there is no suchObjectCodec
.protected BiFunction<? super TreeNode,
? super Type, ?> protected TreeNode
ModifierConstructorDescriptionInputStreamJacksonProvider
(Type lowerBound, BiFunction<? super Loader<?>, ? super Path<? extends Type>, ? extends ObjectCodec> objectCodecFunction, BiFunction<? super Loader<?>, ? super Path<? extends Type>, ? extends InputStream> inputStreamFunction, Consumer<? super InputStream> inputStreamReadConsumer) Creates a newInputStreamJacksonProvider
. -
Uses of Loader in org.microbean.loader.microprofile.config.configsource
-
Uses of Loader in org.microbean.loader.spi
Modifier and TypeMethodDescriptiondefault <U> Value<U>
AmbiguityHandler.disambiguate
(Loader<?> requestor, Path<? extends Type> absolutePath, Provider p0, Value<U> v0, Provider p1, Value<U> v1) protected abstract Supplier<?>
protected Supplier<?>
Returns a deterministicSupplier
suitable for the current request, represented by the suppliedabsolutePath
, as being executed by the suppliedLoader
, ornull
if no suchSupplier
is or ever will be suitable.final Value<?>
Implements theProvider.get(Loader, Path)
method to first call theAbstractProvider.find(Loader, Path)
method, and, if necessary, theAbstractProvider.path(Loader, Path)
method, and to then return aValue
made up of the relevant return values.Value<?>
Returns aPath
that will be used to build aValue
to be returned by theAbstractProvider.get(Loader, Path)
method.Calls theAbstractTreeBasedProvider.path(Loader, Path, BiFunction)
method with the supplied arguments and the return value of an invocation of theAbstractTreeBasedProvider.reader(Loader, Path)
method and returns its result.AbstractTreeBasedProvider.path
(Loader<?> requestor, Path<T> absolutePath, BiFunction<? super N, ? super Type, ?> reader) Returns aPath
for a newValue
that will be returned by theAbstractProvider.get(Loader, Path)
method.default void
AmbiguityHandler.providerRejected
(Loader<?> rejector, Path<? extends Type> absolutePath, Provider provider) Called to notify thisAmbiguityHandler
that aProvider
was discarded during the search for a configured object.protected abstract BiFunction<? super N,
? super Type, ?> Returns aBiFunction
accepting a node and aType
and returning the result of reading an object of that type, ornull
if no suchBiFunction
could be sourced.protected abstract N
default void
AmbiguityHandler.valueRejected
(Loader<?> rejector, Path<? extends Type> absolutePath, Provider provider, Value<?> value) Called to notify thisAmbiguityHandler
that aValue
provided by aProvider
was discarded during the search for a configured object. -
Uses of Loader in org.microbean.loader.typesafe.config
Modifier and TypeMethodDescriptionprotected BiFunction<? super ConfigValue,
? super Type, ?> protected ConfigValue