Skip to content

API to plug-in extra parsers #7

@gossi

Description

@gossi

In a composer.json the extra node is reserved for third-party applications to put their stuff in. Third-party devs should be able to plug-in their parsers into composer to provide a nice API on their own, instead of the JsonObject and JsonArray types.

The API should be able to provide two endpoints.

  1. registering the parser:
ComposerPackage.addExtraParser("node", MyDomain.class);
  1. the retrieving:
ComposerPackage composer = new ComposerPackage(new File("composer.json"));
MyDomain domain = (MyDomain)composer.getExtra().getAsObject("node");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions