PluginLoader.scala 866 B

12345678910111213141516171819202122232425262728
  1. /*
  2. This file is part of karl-marx.
  3. karl-marx is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Affero General Public License as published by
  5. the Free Software Foundation, either version 3 of the License, or
  6. (at your option) any later version.
  7. karl-marx is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Affero General Public License for more details.
  11. You should have received a copy of the GNU Affero General Public License
  12. along with karl-marx. If not, see <https://www.gnu.org/licenses/>.
  13. */
  14. package org.congressodeiradicali.karlmarx
  15. import java.io.File
  16. import scala.util.Try
  17. trait PluginLoader {
  18. def loadFromFile(file: File): Try[Plugin]
  19. }