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

grails.core.events.ArtefactAdditionEvent.groovy Maven / Gradle / Ivy

There is a newer version: 6.2.0
Show newest version
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
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy