Package com.evolveum.axiom.reactor
Interface Dependency<T>
-
- All Known Subinterfaces:
Action<E>,DependantAction<E>,Dependency.Search<T>
- All Known Implementing Classes:
AbstractDependency,DelegatedDependency,Dependency.Immediate,Dependency.OptionalDep,Dependency.Suppliable,Dependency.Unsatified,FlatMapDependency,ItemContext,MapDependency,MapItemContext,RetriableDependency,ValueActionImpl,ValueContext
public interface Dependency<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDependency.Immediate<V>static classDependency.OptionalDep<T>static interfaceDependency.Search<T>static classDependency.Suppliable<V>static classDependency.Unsatified<V>
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static booleanallSatisfied(Collection<? extends Dependency<?>> outstanding)static <T> Dependency<T>deffered(Dependency<T> original)ExceptionerrorMessage()default <R> Dependency<R>flatMap(Function<T,Dependency<R>> map)static <T> Dependency<T>from(Supplier<T> supplier)static <T> Dependency<T>from(Optional<T> maybe)static <T> Dependency<T>fromNullable(T value)Tget()static <T> Dependency<T>immediate(T value)default booleanisRequired()booleanisSatisfied()default <R> Dependency<R>map(Function<T,R> map)static <T> Dependency<T>of(T from)static <T> Dependency<T>optional(Dependency<T> dependency)static <T> Dependency<T>orNull(T value)static <T> Dependency.Search<T>retriableDelegate(Supplier<Dependency<T>> lookup)static <T> Dependency<T>unsatisfied()default Dependency<T>unsatisfied(Supplier<? extends Exception> unsatisfiedMessage)
-
-
-
Method Detail
-
isRequired
default boolean isRequired()
-
isSatisfied
boolean isSatisfied()
-
get
T get()
-
errorMessage
Exception errorMessage()
-
unsatisfied
static <T> Dependency<T> unsatisfied()
-
immediate
static <T> Dependency<T> immediate(T value)
-
optional
static <T> Dependency<T> optional(Dependency<T> dependency)
-
from
static <T> Dependency<T> from(Supplier<T> supplier)
-
deffered
static <T> Dependency<T> deffered(Dependency<T> original)
-
unsatisfied
default Dependency<T> unsatisfied(Supplier<? extends Exception> unsatisfiedMessage)
-
retriableDelegate
static <T> Dependency.Search<T> retriableDelegate(Supplier<Dependency<T>> lookup)
-
from
static <T> Dependency<T> from(Optional<T> maybe)
-
orNull
static <T> Dependency<T> orNull(T value)
-
allSatisfied
static boolean allSatisfied(Collection<? extends Dependency<?>> outstanding)
-
map
default <R> Dependency<R> map(Function<T,R> map)
-
flatMap
default <R> Dependency<R> flatMap(Function<T,Dependency<R>> map)
-
of
static <T> Dependency<T> of(T from)
-
fromNullable
static <T> Dependency<T> fromNullable(T value)
-
-