Package net.devslash
Class BeforeBuilder
-
- All Implemented Interfaces:
public final class BeforeBuilder<T extends Object>
-
-
Constructor Summary
Constructors Constructor Description BeforeBuilder()
-
Method Summary
Modifier and Type Method Description final UnitunaryPlus(ResolvedSessionPersistingBeforeHook<in T> $self)final UnitunaryPlus(SimpleBeforeHook $self)final UnitunaryPlus(SkipBeforeHook $self)final UnitunaryPlus(SessionPersistingBeforeHook $self)final UnitunaryPlus(BeforeHook $self)final UnitunaryPlusAny?(ResolvedSessionPersistingBeforeHook<out Object> $self)If we can't resolve to the <T> type for the resolved after hook, then it's the incorrect type. final List<BeforeHook>build()-
-
Method Detail
-
unaryPlus
final Unit unaryPlus(ResolvedSessionPersistingBeforeHook<in T> $self)
-
unaryPlus
final Unit unaryPlus(SimpleBeforeHook $self)
-
unaryPlus
final Unit unaryPlus(SkipBeforeHook $self)
-
unaryPlus
final Unit unaryPlus(SessionPersistingBeforeHook $self)
-
unaryPlus
final Unit unaryPlus(BeforeHook $self)
-
unaryPlusAny?
@Deprecated(level = DeprecationLevel.ERROR, replaceWith = @ReplaceWith(imports = {}, expression = "Correct type T for the before hook"), message = "Incorrect type T used") final Unit unaryPlusAny?(ResolvedSessionPersistingBeforeHook<out Object> $self)
If we can't resolve to the <T> type for the resolved after hook, then it's the incorrect type. If we remove this method, then the error is simply that
+is not found. Leaving it in with the added deprecation notice leads to a more usable experience as the developer is informed that they got wrong
-
build
final List<BeforeHook> build()
-
-
-
-