Interface Runtime

All Known Implementing Classes:
RuntimeSupport

public interface Runtime
Runtime is a factory for Context instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a Context instance using passed in ContextOverrides, never returns null.
    boolean
    Returns true if this runtime creates managed repository system, that is opposite when MIMA runs in Maven (or any other environment providing resolver), where it does not manage it, as hosting Maven or app does.
    Returns a string representing Maven version this runtime uses, never null.
    The runtime name (mostly for keying purposes), never null.
    int
    The priority of runtime instance.
    The runtime version, never null.
  • Method Details

    • name

      String name()
      The runtime name (mostly for keying purposes), never null.
    • version

      String version()
      The runtime version, never null.
    • priority

      int priority()
      The priority of runtime instance. Priorities use natural integer ordering.
    • mavenVersion

      String mavenVersion()
      Returns a string representing Maven version this runtime uses, never null. This mostly stands for "maven models" version, except when MIMA runs inside of Maven, when it carries the "actual Maven version".
    • managedRepositorySystem

      boolean managedRepositorySystem()
      Returns true if this runtime creates managed repository system, that is opposite when MIMA runs in Maven (or any other environment providing resolver), where it does not manage it, as hosting Maven or app does. In general, you should always treat "root context" as explained in Context and your code will be portable.
    • create

      Context create(ContextOverrides overrides)
      Creates a Context instance using passed in ContextOverrides, never returns null.