All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.innovenso.townplan.dsl.Zone.groovy Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package com.innovenso.townplan.dsl

import lombok.NonNull

import static groovy.lang.Closure.DELEGATE_FIRST

class Zone {
	Closure configurer

	def concepts(@DelegatesTo(value = ZoneConfigurer, strategy = DELEGATE_FIRST) Closure configurer) {
		this.configurer = configurer
	}

	ZoneConfigurer apply(TownPlanConfigurer townPlanConfigurer) {
		if (configurer == null) return
			def zoneConfigurer = new ZoneConfigurer(townPlanConfigurer)
		configurer.delegate = zoneConfigurer
		configurer.resolveStrategy = DELEGATE_FIRST
		configurer.run()
		zoneConfigurer
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy