grails.core.events.ArtefactAdditionEvent.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grails-core Show documentation
Show all versions of grails-core Show documentation
Grails Web Application Framework
package grails.core.events
import groovy.transform.CompileStatic
import grails.core.GrailsClass
import org.springframework.context.ApplicationEvent
/**
* An event triggered for the addition of a new artefact
*/
@CompileStatic
class ArtefactAdditionEvent extends ApplicationEvent{
/**
* Create a new ApplicationEvent.
* @param source the component that published the event (never {@code null})
*/
ArtefactAdditionEvent(GrailsClass artefact) {
super(artefact)
}
GrailsClass getArtefact() {
(GrailsClass)source
}
}