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

com.innovenso.townplan.dsl.traits.HasLifecycle.groovy Maven / Gradle / Ivy

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

import com.innovenso.townplan.dsl.TownPlanConfigurer
import com.innovenso.townplan.dsl.aspects.timemachine.LifecycleAspectConfigurer

import static groovy.lang.Closure.DELEGATE_ONLY

trait HasLifecycle extends CanConfigureConfigurer {
	abstract String getKey();
	abstract TownPlanConfigurer getTownPlanConfigurer();

	void lifecycle(@DelegatesTo(value = LifecycleAspectConfigurer, strategy = DELEGATE_ONLY) Closure configurer) {
		configureConfigurer(new LifecycleAspectConfigurer(townPlanConfigurer, getKey()), configurer)
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy