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 class
Dependency.Immediate<V>
static class
Dependency.OptionalDep<T>
static interface
Dependency.Search<T>
static class
Dependency.Suppliable<V>
static class
Dependency.Unsatified<V>
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static boolean
allSatisfied(Collection<? extends Dependency<?>> outstanding)
static <T> Dependency<T>
deffered(Dependency<T> original)
Exception
errorMessage()
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)
T
get()
static <T> Dependency<T>
immediate(T value)
default boolean
isRequired()
boolean
isSatisfied()
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)
-
-