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

template.EventSelectTemplate.vsl Maven / Gradle / Ivy

## Velocity Template.
package ${functionPackage};

#foreach( $import in $imports)
import $import;
#end


/**
 * Generated EventHandler for {@link ${eventClass}}
 * @author Greg Higgins
 */
public class ${functionClass} implements Wrapper<${eventClass}>{

    private ${eventClass} event;

#if( ${filter} )
    @FilterId
    public ${filterType} filter;

#end    
    @EventHandler
    public boolean handle${eventClass}(${eventClass} event){
        this.event = event;
        return true;
    }

    @Override
    public ${eventClass} event() {
        return event;
    }

    @Override
    public Class<${eventClass}> eventClass() {
        return ${eventClass}.class;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy