public void initPlugin(LockssDaemon daemon, File file) throws PluginException {
   ExternalizableMap oneMap = new ExternalizableMap();
   oneMap.loadMap(file);
   if (oneMap.getErrorString() != null) {
     throw new PluginException(oneMap.getErrorString());
   }
   initPlugin(daemon, file.getPath(), oneMap, null);
 }
 @Override
 public void setUp() throws Exception {
   super.setUp();
   setUpDiskSpace();
   theDaemon = getMockLockssDaemon();
   plugin = new DefinablePlugin();
   plugin.initPlugin(getMockLockssDaemon(), "org.lockss.plugin.highwire.HighWireDrupalPlugin");
 }
 void initPlugin(LockssDaemon daemon, ExternalizableMap defMap, ClassLoader loader) {
   initPlugin(daemon, "Internal", defMap, loader);
 }
 void initPlugin(LockssDaemon daemon, ExternalizableMap defMap) {
   initPlugin(daemon, defMap, this.getClass().getClassLoader());
 }
 public void initPlugin(LockssDaemon daemon, String extMapName) throws FileNotFoundException {
   initPlugin(daemon, extMapName, this.getClass().getClassLoader());
 }
Example #6
0
 public void setUp() throws Exception {
   super.setUp();
   plugin = new DefinablePlugin();
   plugin.initPlugin(getMockLockssDaemon(), "org.lockss.plugin.emls.EmlsPlugin");
 }