Skip to content

Commit 1c9eb51

Browse files
committed
Injection fixes
1 parent 453b8e1 commit 1c9eb51

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/atomgraph/linkeddatahub/server/filter/request/ProxyRequestFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public class ProxyRequestFilter implements ContainerRequestFilter
9494

9595
@Inject com.atomgraph.linkeddatahub.Application system;
9696
@Inject MediaTypes mediaTypes;
97-
@Inject Optional<Ontology> ontology;
97+
@Inject jakarta.inject.Provider<Optional<Ontology>> ontology;
9898
@Context Request request;
9999

100100
@Override
@@ -343,7 +343,7 @@ public com.atomgraph.linkeddatahub.Application getSystem()
343343
*/
344344
public Optional<Ontology> getOntology()
345345
{
346-
return ontology;
346+
return ontology.get();
347347
}
348348

349349
/**

src/test/java/com/atomgraph/linkeddatahub/server/filter/request/ProxyRequestFilterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void setUp()
8888
when(system.getDataManager()).thenReturn(dataManager);
8989
when(dataManager.isMapped(anyString())).thenReturn(false);
9090
when(system.isEnableLinkedDataProxy()).thenReturn(false);
91-
filter.ontology = Optional.empty();
91+
filter.ontology = () -> Optional.empty();
9292
}
9393

9494
/**

0 commit comments

Comments
 (0)