mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 14:03:17 +00:00
Don't inject HandleService, use its provided Factory
This commit is contained in:
@@ -10,6 +10,7 @@ package org.dspace.xoai.services.impl;
|
|||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
import org.dspace.content.DSpaceObject;
|
import org.dspace.content.DSpaceObject;
|
||||||
|
import org.dspace.handle.factory.HandleServiceFactory;
|
||||||
import org.dspace.handle.service.HandleService;
|
import org.dspace.handle.service.HandleService;
|
||||||
import org.dspace.xoai.services.api.context.ContextService;
|
import org.dspace.xoai.services.api.context.ContextService;
|
||||||
import org.dspace.xoai.services.api.context.ContextServiceException;
|
import org.dspace.xoai.services.api.context.ContextServiceException;
|
||||||
@@ -20,8 +21,12 @@ public class DSpaceHandleResolver implements HandleResolver {
|
|||||||
@Inject
|
@Inject
|
||||||
private ContextService contextService;
|
private ContextService contextService;
|
||||||
|
|
||||||
@Inject
|
private final HandleService handleService;
|
||||||
private HandleService handleService;
|
|
||||||
|
public DSpaceHandleResolver()
|
||||||
|
{
|
||||||
|
handleService = HandleServiceFactory.getInstance().getHandleService();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public DSpaceObject resolve(String handle) throws HandleResolverException {
|
public DSpaceObject resolve(String handle) throws HandleResolverException {
|
||||||
|
Reference in New Issue
Block a user