Wrap if command class is instance of processor

This commit is contained in:
Jesse Boyd 2018-07-07 07:12:54 +10:00
parent bcfc7275ad
commit db3c83fdef
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -183,6 +183,9 @@ public class ParametricBuilder {
if (processor != null) {
callable = new ProcessedCallable(callable, processor);
}
else if (object instanceof CallableProcessor) {
callable = new ProcessedCallable(callable, (CallableProcessor) object);
}
if (object instanceof MethodCommands) {
((MethodCommands) object).register(method, callable, dispatcher);
}