# getByName

abstract fun getByName(name: String): Configuration(source)

Locates an object by name, failing if there is no such object.

This operation is eager and will cause the returned element to be realized.

abstract fun getByName(name: String, @DelegatesTo(value = Configuration::class) configureClosure: Closure): Configuration(source)

Locates an object by name, failing if there is no such object. The given configure closure is executed against the object before it is returned from this method. The object is passed to the closure as its delegate.

This operation is eager and will cause the returned element to be realized.

abstract fun getByName(name: String, configureAction: Action<in Configuration>): Configuration(source)

Locates an object by name, failing if there is no such object. The given configure action is executed against the object before it is returned from this method.

This operation is eager and will cause the returned element to be realized.