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

pl.touk.nussknacker.engine.api.MethodToInvoke Maven / Gradle / Ivy

There is a newer version: 1.18.0
Show newest version
package pl.touk.nussknacker.engine.api;

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

// TODO: Rename to ComponentMainMethod
/**
 * Method marked with this annotation will be invoked in Nu component (source, sink, service etc)
* */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface MethodToInvoke {

    /**
     * Partially deprecated - for precise type computation use
     * ContextTransformation.definedBy(_.withVariable(variableName, Typed[...])
     * You still need to declare that you don't return anything. See ComponentDefinitionExtractor for details.
     */
    Class returnType() default Object.class;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy