Interface RegistrationProvider

All Known Implementing Classes:
ISModelRegistrationProvider

public interface RegistrationProvider
An interface for providers that supply package information for model registration.

Implementations of this interface are used to identify the packages that contain the model's type definitions, which need to be registered with the system. Any implementation must have a no-argument constructor.

Author:
Luca Frosini (ISTI - CNR)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Constant representing an unknown model version.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name of the model.
    default String
    Returns the version of the model, resolved dynamically (e.g. from the JAR manifest).
    Returns a collection of packages that contain the model's type definitions.
  • Field Details

    • UNKNOWN_VERSION

      static final String UNKNOWN_VERSION
      Constant representing an unknown model version.
      See Also:
  • Method Details

    • getModelName

      String getModelName()
      Returns the name of the model.
      Returns:
      The model name.
    • getModelVersion

      default String getModelVersion()
      Returns the version of the model, resolved dynamically (e.g. from the JAR manifest). If resolution fails or version is not available, returns UNKNOWN_VERSION.
      Returns:
      The model version, or "unknown".
    • getPackagesToRegister

      Collection<Package> getPackagesToRegister()
      Returns a collection of packages that contain the model's type definitions.
      Returns:
      A collection of packages to be registered.