Refactor PluginManager into PluginService and LegacyPluginServiceImpl. Add unit tests.

This commit is contained in:
Tim Donohue
2015-10-15 11:47:12 -05:00
parent 0466184350
commit 3df18c68b8
47 changed files with 507 additions and 426 deletions

View File

@@ -8,9 +8,9 @@
package org.dspace.checker;
import org.dspace.content.Bitstream;
import org.dspace.core.PluginManager;
import java.sql.SQLException;
import org.dspace.core.factory.CoreServiceFactory;
/**
* Decorator that dispatches a specified number of bitstreams from a delegate
@@ -30,11 +30,11 @@ public class LimitedCountDispatcher implements BitstreamDispatcher
private BitstreamDispatcher delegate = null;
/**
* Default constructor uses PluginManager
* Default constructor uses LegacyPluginServiceImpl
*/
public LimitedCountDispatcher()
{
this((BitstreamDispatcher) PluginManager
this((BitstreamDispatcher) CoreServiceFactory.getInstance().getPluginService()
.getSinglePlugin(BitstreamDispatcher.class));
}