# Interface ToolingModelBuilderRegistry

@ServiceScope(org.gradle.internal.service.scopes.Scope.Build.class) public interface ToolingModelBuilderRegistry
A registry of tooling model builders. Adding a builder to this registry makes a model (or models) available via the tooling API.

An instance of this type can be injected into a task, plugin or other object by annotating a public constructor or property getter method with `javax.inject.Inject`.

Since:
  1.6

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ToolingModelBuilder`
  `getBuilder(String modelName)`
  Returns the builder.
  `void`
  `register(ToolingModelBuilder builder)`
  Register.

- ## Method Details

  - ### register

    void register(ToolingModelBuilder builder)
    Register.
    Since:
      1.6

  - ### getBuilder

    ToolingModelBuilder getBuilder(String modelName) throws UnknownModelException
    Returns the builder.
    Throws:
      `UnknownModelException`
    Since:
      1.6