Skip to content

Commit

Permalink
Remove spring
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv committed Apr 24, 2024
1 parent 69538a9 commit 5654ee5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
27 changes: 0 additions & 27 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@
</distributionManagement>

<dependencies>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-iri</artifactId>
<version>${jena.version}</version>
</dependency>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-arq</artifactId>
Expand All @@ -78,11 +73,6 @@
<artifactId>jena-querybuilder</artifactId>
<version>${jena.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.13</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
Expand Down Expand Up @@ -140,30 +130,13 @@
<version>2.35.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
<version>3.1.2</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>6.0.11</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<version>5.3</version>
</dependency>

</dependencies>


<build>
<plugins>
<plugin>
Expand Down
12 changes: 1 addition & 11 deletions src/main/java/org/aksw/iguana/cc/lang/LanguageProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import org.aksw.iguana.cc.storage.Storable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.util.AnnotatedTypeScanner;

import java.io.InputStream;
import java.lang.annotation.ElementType;
Expand Down Expand Up @@ -41,16 +40,7 @@ public interface LanguageProcessingData extends Storable {
final private static Logger LOGGER = LoggerFactory.getLogger(LanguageProcessor.class);

static {
final var scanner = new AnnotatedTypeScanner(false, ContentType.class);
final var langProcessors = scanner.findTypes("org.aksw.iguana.cc.lang");
for (Class<?> langProcessor : langProcessors) {
String contentType = langProcessor.getAnnotation(ContentType.class).value();
if (LanguageProcessor.class.isAssignableFrom(langProcessor)) {
processors.put(contentType, (Class<? extends LanguageProcessor>) langProcessor);
} else {
LOGGER.error("Found a class with the ContentType annotation, that doesn't inherit from the class LanguageProcessor: {}", langProcessor.getName());
}
}
processors.put("application/sparql-results+json", org.aksw.iguana.cc.lang.impl.SaxSparqlJsonResultCountingParser.class);
}

public static LanguageProcessor getInstance(String contentType) {
Expand Down

0 comments on commit 5654ee5

Please sign in to comment.