Skip to content

Wrap OTIO base classes in Java interfaces or abstract class instead of classes #32

Open

Description

@KarthikRIyer

OTIO classes like Composition and Item can be wrapped in Java interfaces or abstract class instead of classes to make it explicit that they are not to be used directly, but through subclasses. If there's any useful logic in these base classes we can provide default implementation in the interface as shown here.

Activity

  1. changed the title [-]Wrap OTIO base classes in Java interfaces instead of classes[/-] [+]Wrap OTIO base classes in Java interfaces or abstract class instead of classes[/+] on Sep 4, 2021
  2. KarthikRIyer commented on Sep 4, 2021

    @KarthikRIyer
    ContributorAuthor

    @reinecke classes like Composition and Item have functions which do not have an implementations and should be subclassed for actual use. In the python bindings why don't we make them abstract methods?

    Is there any situation where someone would use Composable, Composition, Item, SerializableObject, SerializableObjectWithMetadata directly?

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