report.setActionExitCode(ActionReport.ExitCode.FAILURE);
LogHelper.getDefaultLogger().info(msg);
return null;
}
Scoped scoped = command.getClass().getAnnotation(Scoped.class);
if (scoped == null) {
String msg = adminStrings.getLocalString("adapter.command.noscope",
"Implementation for the command {0} exists in the " +
"system,\nbut it has no @Scoped annotation", commandName);
report.setMessage(msg);
report.setActionExitCode(ActionReport.ExitCode.FAILURE);
LogHelper.getDefaultLogger().info(msg);
command = null;
} else if (scoped.value() == Singleton.class) {
// check that there are no parameters for this command
CommandModel model = getModel(command);
if (model.getParameters().size() > 0) {
String msg =
adminStrings.getLocalString("adapter.command.hasparams",