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 701B

12345678910111213141516171819202122
  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 com.uqac.rthoni.java_rmi.server.ServerApplication;
  5. import java.util.Vector;
  6. /**
  7. * Created by robin on 9/16/16.
  8. */
  9. public abstract class AbstractCommandExecutor {
  10. public static Vector<Class> getAllExecutors() throws ClassNotFoundException
  11. {
  12. return ReflectionUtil.getClassesOfSuperClass(AbstractCommandExecutor.class.getPackage().getName(), AbstractCommandExecutor.class);
  13. }
  14. public abstract String getCommandName();
  15. public abstract String run(Command command, ServerApplication server) throws Exception;
  16. }