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 Unit
unaryPlus(ResolvedSessionPersistingBeforeHook<in T> $self)
final Unit
unaryPlus(SimpleBeforeHook $self)
final Unit
unaryPlus(SkipBeforeHook $self)
final Unit
unaryPlus(SessionPersistingBeforeHook $self)
final Unit
unaryPlus(BeforeHook $self)
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. 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()
-
-
-
-