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)

Reply via email to