Wrap if command class is instance of processor
This commit is contained in:
parent
bcfc7275ad
commit
db3c83fdef
@ -183,6 +183,9 @@ public class ParametricBuilder {
|
|||||||
if (processor != null) {
|
if (processor != null) {
|
||||||
callable = new ProcessedCallable(callable, processor);
|
callable = new ProcessedCallable(callable, processor);
|
||||||
}
|
}
|
||||||
|
else if (object instanceof CallableProcessor) {
|
||||||
|
callable = new ProcessedCallable(callable, (CallableProcessor) object);
|
||||||
|
}
|
||||||
if (object instanceof MethodCommands) {
|
if (object instanceof MethodCommands) {
|
||||||
((MethodCommands) object).register(method, callable, dispatcher);
|
((MethodCommands) object).register(method, callable, dispatcher);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user