Hi,
While working on CAMEL-17308, and also in the changes made for CAMEL-17664, I noticed that VerbDefinition.asVerb() uses code like this:
        // so we infer the verb from the instance type
        if (this instanceof GetDefinition) {
            return "get";
        } else if (this instanceof PostDefinition) {
            return "post";
        } etc.
Is there some reason we do this instead of overriding asVerb() in the subclasses?

Karen

Reply via email to