accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Tubbs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-3514) Use Java ServiceLoader to identify classes that are launchable by start
Date Fri, 23 Jan 2015 00:17:34 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-3514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14288489#comment-14288489
] 

Christopher Tubbs commented on ACCUMULO-3514:
---------------------------------------------

Well, I've been using the ServiceLoader for my work on the new API and like it. It achieves
the same function as ACCUMULO-1496, but without the runtime overhead for discovering implementations.
Instead, it relies on classpath files to link the implementation with the interface, which
can be generated at compile-time. Otherwise, it's essentially the same thing.

I could have done the ServiceLoader implementation under that issue instead of a new one,
but I wanted to have a clean break from the scannotations implementation, even if it was just
notional in my head.

> Use Java ServiceLoader to identify classes that are launchable by start
> -----------------------------------------------------------------------
>
>                 Key: ACCUMULO-3514
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3514
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: start
>            Reporter: Christopher Tubbs
>            Assignee: Christopher Tubbs
>             Fix For: 1.7.0
>
>
> This is similar to the goals of ACCUMULO-1496, but it should be possible to do it more
efficiently with an annotation processor and Java's ServiceLoader. If successful, this would
supersede ACCUMULO-1496.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message