Skip to content

Ops/OpCollections violate the contract of SciJavaPlugin #67

Closed

Description

@gselzer

Taken from https://javadoc.scijava.org/SciJava/org/scijava/plugin/SciJavaPlugin.html:

Top-level interface for plugins. Plugins discoverable at runtime must implement this interface and be annotated with @plugin.

Ops (and OpCollections) do not implement Op (and OpCollection), thus violating the contract.

Note that we might be able to avoid this issue via #55, thus we should postpone any decisions/effort on rectifying this issue until #55 has been solved.

Activity

  1. gselzer commented on Jul 29, 2021

    @gselzer
    MemberAuthor

    Taken from discussion with @ctrueden on Gitter

    If I recall correctly, our plan for SciJava 3 was to remove the requirement to implement SciJavaPlugin, so that plain Function implementations can be annotated, for example.
    Otherwise, you'd need to have something like a SciJavaPluginFunction that extends both SciJavaPlugin and Function in order to legally annotated it with @Plugin.
    But nowhere does it say that you need to implement the Op interface specifically, or that Op needs to extend SciJavaPlugin.

    Thus it is unlikely that we must actually implement either Op/OpCollection or SciJavaPlugin. However we must wait for SciJava 3 to align with the (new) contract of SciJavaPlugin

  2. gselzer commented on May 13, 2022

    @gselzer
    MemberAuthor

    Seeing as how SciJava3 components no longer rely on the Plugin framework, this issue has become irrelevant.

  3. added a commit that references this issue on May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions