com.innovenso.townplan.dsl.TownPlanner.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of innovenso-townplanner-dsl Show documentation
Show all versions of innovenso-townplanner-dsl Show documentation
Domain Specific Language for the Innovenso Townplanner
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