Commit Graph

747 Commits

Author SHA1 Message Date
Oleg Zhurakousky
130c25f4dc Cleanup deprecations 2022-09-28 15:48:00 +02:00
Oleg Zhurakousky
f2073600ad Polishing 2022-09-22 20:45:18 +02:00
Oleg Zhurakousky
83980d34e1 Add new spring-boot .imports files and move auto-configuration classes there 2022-09-22 17:01:33 +02:00
Oleg Zhurakousky
14b47350cf Polishing the last commit 2022-09-20 18:44:41 +02:00
Oleg Zhurakousky
586aa7afa4 GH-925 Fix regression with Kotlin @Component regstration
Resolves #925
2022-09-20 18:07:18 +02:00
Oleg Zhurakousky
e44c00f0ee Add fallback to type discovery in FunctionContextUtils 2022-09-14 11:34:24 +02:00
Oleg Zhurakousky
0abfeee528 GH-924 Fix regression with structured CE cnversion into Message
Resolves #924
2022-09-08 16:20:43 +02:00
Soby Chacko
c8109270d2 Remove AVRO message converters in 4.0.x
Since we are migrating Schema Registry to Spring Cloud Stream,
the AVRO message converters in Spring Cloud Function could reside
in Spring Cloud Stream as part of its Schema Registry.

Resolves https://github.com/spring-cloud/spring-cloud-function/issues/921

Resolves #922
2022-08-29 18:56:21 +02:00
Oleg Zhurakousky
e83b0dfabe GH-919 Fix regression that was modifying result message
Resolves #919
2022-08-24 16:19:22 +02:00
Oleg Zhurakousky
9ad68f40f8 GH-918 Fix Kotlin function invocation
For some reason it contained code that was doing some special checking for array and was returning null.
Resolves #918
2022-08-17 18:38:14 +02:00
Oleg Zhurakousky
d222cb12d5 GH-917 Fix regression with sanitizing headers
Resolves #917
2022-08-16 16:43:18 +02:00
Oleg Zhurakousky
12f45f1507 GH-915 Make Kotlin initialization 'lazy'
This way just like with any other function, Kotlin initialization, type discovery etc will be performed on function lookup
This will also ensure that order of various post processors doesn't get in the way.

Resolves #915
2022-08-11 16:59:55 +02:00
Oleg Zhurakousky
8999337255 GH-909 Fix spelling of the method
Resolves #909
2022-08-08 15:33:27 +02:00
Oleg Zhurakousky
e4b074b6d4 GH-905 Relax handling of incompatible BiFunctions
Resolves #905
2022-08-03 18:03:08 +02:00
buildmaster
47134a5de7 Going back to snapshots 2022-07-29 18:47:37 +00:00
buildmaster
6feb42d445 Update SNAPSHOT to 4.0.0-M4 2022-07-29 18:43:03 +00:00
Oleg Zhurakousky
a7a8217f58 Remove functionType deprecations 2022-07-27 17:41:09 +02:00
Oleg Zhurakousky
6879298a5d Remove additional deprecations 2022-07-27 14:29:49 +02:00
Oleg Zhurakousky
ff83f3bc59 Remove deprecated property 2022-07-27 12:54:42 +02:00
Oleg Zhurakousky
b598949d73 GH-901 add more logging around failed conversion of input messages
Resolves #901
2022-07-26 17:35:49 +02:00
Maciej Walkowiak
f51279be48 Fix typo.
Fix typo.
2022-07-26 11:50:52 +02:00
Oleg Zhurakousky
4ace646482 Relax logging in SimpleFunctionRegistry 2022-07-25 15:46:59 +02:00
Oleg Zhurakousky
8b4d50dd3d Remove reflection usage to accomodate AOT 2022-07-25 15:14:13 +02:00
Chris Bono
fc0dacb893 GH-892 Remove use of reflection from CloudEventMessageUtils
Fixes #892
Resolves #894
2022-07-13 14:18:42 +02:00
Oleg Zhurakousky
b3f564b40f Fix function eligibility filtering 2022-06-16 18:27:23 +02:00
Oleg Zhurakousky
7663836810 GH-884 Add initial support for BiConsumer 2022-06-15 16:15:21 +02:00
buildmaster
867dcf8275 Going back to snapshots 2022-06-15 09:35:09 +00:00
buildmaster
d7c2d575fc Update SNAPSHOT to 4.0.0-M3 2022-06-15 09:31:10 +00:00
Oleg Zhurakousky
967a6de0b0 Remove explicit micrometer versions 2022-06-15 11:18:56 +02:00
Oleg Zhurakousky
39e4bed412 GH-884 Add initial support for BiFunction
Resolves #884

polish
2022-06-14 09:36:09 +02:00
Oleg Zhurakousky
9f9d5602e7 GH-883 Add support for filtering out ineligible functions
Resolves #883
2022-06-13 15:46:45 +02:00
Oleg Zhurakousky
7b0dd911f1 Add author 2022-06-09 15:04:14 +02:00
Oleg Zhurakousky
be3922852f checkstyle 2022-06-08 19:51:30 +02:00
Oleg Zhurakousky
be50e4a398 SCST-GH-2355 Add support for batch processing of collections with different types
Specifically KafkaNull. But this commit effectively paves a path for any type
2022-06-08 19:46:35 +02:00
Oleg Zhurakousky
35c8e6f64a Initial commit of KafkaNull changes to SmartCompositeMessageConverter 2022-06-08 12:22:14 +02:00
Oleg Zhurakousky
b1a6fc4994 KafkaNull batch attempt 2022-06-07 21:22:25 +02:00
Oleg Zhurakousky
724ba06c11 Fix FunctionTypeUtils as well as LocalServerPort issue
Resolves #871
2022-06-07 16:01:50 +02:00
Artem Bilan
66b88f2f1e FunctionTypeUtils test for NPE
Related to https://stackoverflow.com/questions/72163534/spring-batch-integration-throwns-org-springframework-messaging-messagehandlingex

The `FunctionTypeUtils.isMessage()` fails with NPE
when target method has non-message argument with generic parameter.
Even if we instantiate the class with specific generic argument,
that info is not available for reflection and `MethodParameter`
end up with a generic parameter name which is essentially a `TypeVariable`

The stacktrace is like this:
```
java.lang.NullPointerException: Cannot invoke "java.lang.Class.getGenericInterfaces()" because "targetType" is null

	at net.jodah.typetools.TypeResolver.getTypeVariableMap(TypeResolver.java:494)
	at net.jodah.typetools.TypeResolver.resolveRawClass(TypeResolver.java:387)
	at net.jodah.typetools.TypeResolver.resolveRawClass(TypeResolver.java:373)
	at org.springframework.cloud.function.context.catalog.FunctionTypeUtils.isMessage(FunctionTypeUtils.java:416)
```
2022-06-07 15:21:09 +02:00
Oleg Zhurakousky
4661ab186b GH-873 Fix JsonNode conversion
Resolves #873
2022-05-30 14:39:03 +02:00
Oleg Zhurakousky
085ae9f620 GH-878 Fix concurrency issue during registration and lookup of functions
Resolves #878
2022-05-30 12:11:36 +02:00
Oleg Zhurakousky
3aa3c4a2c3 GH-865 Added initial test for Observability module
Resolves #865
2022-05-10 15:23:12 +02:00
Oleg Zhurakousky
bef1b018d0 GH-739 Add DEBUG log statement for when type conversion fails
Resolves #739
2022-05-04 14:59:38 +02:00
Oleg Zhurakousky
3bfa5faa44 GH-791 Add support for propagating input headers
Resolves #791

polishing merge
2022-05-04 14:48:14 +02:00
Oleg Zhurakousky
536bd3920f Remove observability 2022-05-03 19:48:16 +02:00
Oleg Zhurakousky
82e090d163 GH-856 Fix logic in determining Cloud Event prefix
Resolves #856
2022-04-26 08:39:26 +02:00
REMY David
eee99c051b Change OffsetTime to OffsetDateTime in CloudEventMessageUtils
Resolves #855
2022-04-21 11:03:44 +02:00
Oleg Zhurakousky
bbac4b198e Fix handling of collections by non-reactive Consumers 2022-04-06 17:23:48 +02:00
spencergibb
470eda85a7 Revert "Remove io.micrometer.observation code"
This reverts commit 830a7e7cc2.
2022-03-31 16:09:58 -04:00
buildmaster
343aac3eff Going back to snapshots 2022-03-31 17:26:24 +00:00
buildmaster
b1779fe50b Update SNAPSHOT to 4.0.0-M2 2022-03-31 17:22:24 +00:00