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

template.PushTemplate.vsl Maven / Gradle / Ivy

## Velocity Template.
package ${functionPackage};
#foreach( $import in $imports)
import $import;
#end

/**
 * Generated push function wrapper.
 *
    *
  • input class : {@link ${filterSubjectClass}} *
  • push target : {@link ${targetClass}#${targetMethod}} *
* * @author Greg Higgins */ public class ${functionClass} implements Wrapper<${functionClass}>{ public ${sourceClass} filterSubject; @PushReference public ${targetClass} f; @OnEvent public boolean onEvent(){ f.${targetMethod}(${input}); return true; } @Override public ${functionClass} event() { return this; } @Override public Class<${functionClass}> eventClass() { return ${functionClass}.class; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy