You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@any23.apache.org by "Hans Brende (JIRA)" <ji...@apache.org> on 2018/09/12 20:01:00 UTC
[jira] [Created] (ANY23-398) Make use of CompositeTripleHandler
Hans Brende created ANY23-398:
---------------------------------
Summary: Make use of CompositeTripleHandler
Key: ANY23-398
URL: https://issues.apache.org/jira/browse/ANY23-398
Project: Apache Any23
Issue Type: Improvement
Components: core
Affects Versions: 2.3
Reporter: Hans Brende
Fix For: 2.3
The {{BenchmarkTripleHandler}}, {{ExtractionContextBlocker}}, {{IgnoreAccidentalRDFa}}, {{IgnoreTitlesOfEmptyDocuments}}, {{LoggingTripleHandler}}, and {{ReportingTripleHandler}} classes could all potentially be subclasses of {{CompositeTripleHandler}} to reduce delegation boilerplate.
In addition, we could add the following constructor to {{CompositeTripleHandler}} for ease of subclassing by classes with a single delegate:
{code}
public CompositeTripleHandler(TripleHandler delegate) {
this(Collections.singleton(delegate));
}
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)