# TypeBuilder

@Incubating
interface TypeBuilder<T>(source)

### Deprecated

The Gradle software model is deprecated and will be removed in Gradle 10. Use the new component model (e.g. `cpp-application`, `cpp-library`, `swift-application`, `swift-library`, `xctest`) instead.

A TypeBuilder to configure the registration of a type.

#### Since

2.2

#### Parameters

<T>

The registered type.

## Functions

defaultImplementation
Link copied to clipboard
abstract fun defaultImplementation(implementation: Class<out Any>): TypeBuilder<T>
Allows the plugin to register the implementation type.
defaultImplementation
Link copied to clipboard
@Incubating
inline fun <T : Any> TypeBuilder<T>.defaultImplementation(implementation: KClass<*>): TypeBuilder<T>

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.platform.base.TypeBuilder.defaultImplementation.

internalView
Link copied to clipboard
abstract fun internalView(internalView: Class<out Any>): TypeBuilder<T>
Allows type registration rules to add internal views to the registered type.
internalView
Link copied to clipboard
@Incubating
inline fun <T : Any> TypeBuilder<T>.internalView(internalView: KClass<*>): TypeBuilder<T>

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.platform.base.TypeBuilder.internalView.