Package kboyle.oktane.core.prefix
Class DefaultPrefixHandler
java.lang.Object
kboyle.oktane.core.prefix.DefaultPrefixHandler
- All Implemented Interfaces:
PrefixHandler
Represents the default implementation of a
PrefixHandler.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds aPrefixto the handle.reactor.core.publisher.Mono<Collection<Prefix>>get(CommandContext context)Gets thePrefix's for the givenCommandContext.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface kboyle.oktane.core.PrefixHandler
find
-
Constructor Details
-
DefaultPrefixHandler
public DefaultPrefixHandler()
-
-
Method Details
-
get
Description copied from interface:PrefixHandlerGets thePrefix's for the givenCommandContext.- Specified by:
getin interfacePrefixHandler- Parameters:
context- The current executionCommandContext.- Returns:
- A collection of
Prefix's.
-
addPrefix
Adds aPrefixto the handle.- Parameters:
prefix- ThePrefixto add.- Returns:
- The
DefaultPrefixHandler.
-