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

com.github.rahulsom.grooves.groovy.transformations.Event Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
package com.github.rahulsom.grooves.groovy.transformations;

import com.github.rahulsom.grooves.api.AggregateType;
import com.github.rahulsom.grooves.groovy.transformations.internal.EventASTTransformation;
import org.codehaus.groovy.transform.GroovyASTTransformationClass;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Marks a class as an Event.
 *
 * @author Rahul Somasunderam
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
@GroovyASTTransformationClass(classes = EventASTTransformation.class)
public @interface Event {
    /**
     * Aggregates to which this event can be applied
     *
     * @return The type of the Aggregate
     */
    Class value();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy