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 aPrefix
to 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, wait
Methods inherited from interface kboyle.oktane.core.PrefixHandler
find
-
Constructor Details
-
DefaultPrefixHandler
public DefaultPrefixHandler()
-
-
Method Details
-
get
Description copied from interface:PrefixHandler
Gets thePrefix
's for the givenCommandContext
.- Specified by:
get
in interfacePrefixHandler
- Parameters:
context
- The current executionCommandContext
.- Returns:
- A collection of
Prefix
's.
-
addPrefix
Adds aPrefix
to the handle.- Parameters:
prefix
- ThePrefix
to add.- Returns:
- The
DefaultPrefixHandler
.
-