25 Zeilen
705 B
Java
25 Zeilen
705 B
Java
package de.steamwar.command;
|
|
|
|
import de.steamwar.command.dto.ExecutionIdentifier;
|
|
import de.steamwar.command.dto.TestGuardChecker;
|
|
import de.steamwar.command.dto.TestSWCommand;
|
|
|
|
public class GuardCommand extends TestSWCommand {
|
|
|
|
public GuardCommand() {
|
|
super("typemapper");
|
|
}
|
|
|
|
@Register
|
|
public void test(@Guard String sender) {
|
|
throw new ExecutionIdentifier("RunTypeMapper");
|
|
}
|
|
|
|
@ClassGuard(value = String.class, local = true)
|
|
public AbstractGuardChecker<String> getGuardChecker() {
|
|
return (TestGuardChecker) (s, guardCheckType, previousArguments, s2) -> {
|
|
throw new ExecutionIdentifier("GuardChecker " + guardCheckType);
|
|
};
|
|
}
|
|
}
|