mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-14 13:33:08 +00:00
Refactor PluginManager into PluginService and LegacyPluginServiceImpl. Add unit tests.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user