Class FunctionRegistration<T>

java.lang.Object
org.springframework.cloud.function.context.FunctionRegistration<T>
Type Parameters:
T - target type
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

public class FunctionRegistration<T> extends Object implements org.springframework.beans.factory.BeanNameAware
Author:
Dave Syer, Oleg Zhurakousky
  • Field Details

    • REGISTRATION_NAME_SUFFIX

      public static String REGISTRATION_NAME_SUFFIX
      Suffix used to add to the name of FunctionRegistration bean that corresponds to the an actual function bean. It is often used when the actual function bean may not be a java Function (e.g., Kotlin) and certain custom wrapping is required.
      NOTE: This is not intended as oublis API
  • Constructor Details

    • FunctionRegistration

      public FunctionRegistration(T target, String... names)
      Creates instance of FunctionRegistration.
      Parameters:
      target - instance of Supplier, Function or Consumer
      names - additional set of names for this registration. Additional names can be provided name(String) or names(String...) operations.
  • Method Details