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

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

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

import com.innovenso.townplan.domain.TownPlanImpl

import static groovy.lang.Closure.DELEGATE_FIRST

class TownPlanner {
	static TownPlanImpl townPlan(
			@DelegatesTo(value = TownPlanConfigurer, strategy = DELEGATE_FIRST) Closure configurer) {
		def townPlanConfigurer = new TownPlanConfigurer()
		configurer.delegate = townPlanConfigurer
		configurer.resolveStrategy = DELEGATE_FIRST
		configurer()
		return townPlanConfigurer.apply()
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy