You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AbstractCommandExecutor.java 617B

123456789101112131415161718192021
  1. package com.uqac.rthoni.java_rmi.server.executors;
  2. import com.uqac.rthoni.java_rmi.common.Command;
  3. import com.uqac.rthoni.java_rmi.common.ReflectionUtil;
  4. import java.util.Vector;
  5. /**
  6. * Created by robin on 9/16/16.
  7. */
  8. public abstract class AbstractCommandExecutor {
  9. public static Vector<Class> getAllExecutors() throws ClassNotFoundException
  10. {
  11. return ReflectionUtil.getClassesOfSuperClass(AbstractCommandExecutor.class.getPackage().getName(), AbstractCommandExecutor.class);
  12. }
  13. public abstract String getCommandName();
  14. public abstract String run(Command command) throws Exception;
  15. }