Commit Graph

1444 Commits

Author SHA1 Message Date
Oleg Zhurakousky
f25d37683f GH-1917 add missing support for composing reactive function
Added missing support for composing reactive function to an existing legacy source. Imperative functions already had such support
Added tests as well as minor refactoring/cleanup in FunctionConfiguration

Resolves #1917
2020-02-26 09:51:11 +01:00
Oleg Zhurakousky
b5e9444d0c GH-1916 Fix partition support for reactive functions
Fixed output partition support for reactive functions. For imperative functions it was already addressed with https://github.com/spring-cloud/spring-cloud-stream/issues/1893
Added tests

Resolves #1916
2020-02-24 16:39:24 +01:00
Oleg Zhurakousky
1361e2b092 Update POMs for Ivyland 2020-02-14 10:48:02 +01:00
Oleg Zhurakousky
6d2a07c601 Remove schema and reactive modules 2020-02-14 10:36:20 +01:00
buildmaster
54b9fb63a7 Bumping versions to 3.0.3.BUILD-SNAPSHOT after release 2020-02-13 08:02:28 +00:00
buildmaster
59709fb6d2 Going back to snapshots 2020-02-13 08:02:28 +00:00
buildmaster
cda48351a0 Update SNAPSHOT to 3.0.2.RELEASE 2020-02-13 07:59:55 +00:00
Oleg Zhurakousky
4dff694beb upgraded to lates s-c-function and s-c-build
cleaned javadoc errors in some modules
2020-02-12 19:07:27 +01:00
Oleg Zhurakousky
f742dca2a7 Added temporary fix to avoid breaking change due to new functionality in functions 2020-02-12 15:43:25 +01:00
Oleg Zhurakousky
6fc3b85481 GH-1876 Some cleanup on functional and annotation mix
Some plishing and cleanup as well as re-enabling few tests,. but as explained in GH issue there is really nothing to fix here since the behav ior is by design.
2020-02-11 14:09:59 +01:00
Oleg Zhurakousky
897cb670aa GH-1897 Fixed javadocs
Fixed javadocs issues that were preventing javadocs from being generated

Resolves #1897
2020-02-11 09:25:40 +01:00
Soby Chacko
a8dd003b34 Add missing properties in DefaultPollerProperties
cron and initialDelay properties in DefaultPollerProperties

Resolves #1903
2020-02-10 16:53:39 +01:00
Oleg Zhurakousky
51f6187e39 GH-1893 Added partition support for Supplier
- Expended functional support for SpEL-based partitioning of outgoing messages that was added cce66f338a to Supplier.
- Added tests

- polished docs

Resolves #1893
2020-02-10 16:42:56 +01:00
Oleg Zhurakousky
968d3581df Updated initializr image 2020-02-06 14:48:50 +01:00
Oleg Zhurakousky
2dc7e89345 GH-1902 Added support for contentType value as byte[]
changed stream overview image to showcase functional programming model

Resolves #1902
2020-02-06 14:31:19 +01:00
Oleg Zhurakousky
cce66f338a GH-1893 Fix SpEL partition support
Consolidated code around PartitionHandler and interceptor

Consolidated ContentTypeConfiguration and the returning CompositeMessageConverter

Added support (reluctantly) to allow SpEL expressions for determining partition for function programming model. In other words something like  would work

That said, it is highly recommended to never use payload as a source for any kind of expressions (input or output) as payload constitutes privileged information that should only be accessible to he producer and consumer.

Resolves #1893
Resolves #1877
2020-02-05 17:48:04 +01:00
Oleg Zhurakousky
2fca323654 Additional enhancements to dynamic binding test feature 2020-02-03 13:23:43 +01:00
Oleg Zhurakousky
ce221adf0d Fixing check styles in last commit 2020-01-31 07:05:19 +01:00
Oleg Zhurakousky
a1449d6524 Adding utility for manual binding for testing 2020-01-31 05:43:47 +01:00
Oleg Zhurakousky
93a489ac9a Updated testing section with destination naming
Related to #1894
2020-01-29 11:03:48 +01:00
Oleg Zhurakousky
41ab7abc51 GH-1894 Added test to demonstrate testing with explicit bindings
Resolves #1894
2020-01-27 17:56:42 +01:00
Oleg Zhurakousky
67b36959fd GH-1885, GH-1896 Added tests for conversion of collection of messages
Also, fixed the routing exception when function returns a publisher

Resolves #1885
Resolves #1896
2020-01-27 17:29:10 +01:00
Oleg Zhurakousky
4077b0d728 GH-1898 Fix map/collection tyoe conversion
Delegated conversion of individual collection elements that are  non-String and non-byte[] to ObjectMapper
In the future we can potentially explore delegation to Spring's ConversionService

Resolves #1898
2020-01-27 11:33:47 +01:00
Oleg Zhurakousky
a94e533a50 GH-1894 Added support for named destination in test binder
Deprecated indexed operations
Modified several tests to use new operators

Resolves #1894
2020-01-24 19:16:21 +01:00
Oleg Zhurakousky
e1a3b72027 GH-1894 interim 2020-01-24 18:18:40 +01:00
Oleg Zhurakousky
badd024207 GH-1895 Made test binder not eligible as default
This effectively ensures that it has to be explicitly added

Resolves #1895
2020-01-24 17:53:14 +01:00
Oleg Zhurakousky
92379f60c7 GH-1891 Updated the doc by adding a note on Consumer 2020-01-24 13:21:48 +01:00
Oleg Zhurakousky
358dc106ca GH-1891 Added test to validate propper behavior of stateful functions
While the original issue was addressed with the reversak of a5e990b2d0 commit
this commit simply adds a test to validate the expected behavior

Resolves #1891
2020-01-23 19:27:35 +01:00
Oleg Zhurakousky
664629573f Polished subscribtion logic in FunctionConfiguration 2020-01-23 18:13:56 +01:00
Oleg Zhurakousky
a5e990b2d0 Revert "Additional consolidation and simplification of logic around bootstrapping multiple argument and single arguments functions"
This reverts commit c614e15f10.
2020-01-23 16:33:52 +01:00
Stephen Oakey
3461b97286 Add @ConditionalOnAvailableEndpoint to Actuator Endpoints
Resolves #1889

- Added @ConditionalOnAvailableEndpoint to endpoint bean
definitions so that they may be managed by Spring Boot's
configuration properties.
2020-01-21 20:23:13 +01:00
Oleg Zhurakousky
c614e15f10 Additional consolidation and simplification of logic around bootstrapping multiple argument and single arguments functions 2020-01-21 20:05:22 +01:00
Oleg Zhurakousky
9ce5e57080 Clean up and refactoring
- Upgraded to functions 3.0.2.BS
- Fixed Supplier sample in documentation (see https://stackoverflow.com/questions/59744352/messagedeliveryexception-in-case-of-using-function-and-supplier-in-one-spring-cl)
- Consolidated and simplified logic around bootstrapping multiple argument and single arguments functions
- Added test for useNativeEncoding
2020-01-15 07:05:12 +01:00
Oleg Zhurakousky
ca54a9f878 GH-1882 Ensured that BindableProxyFactory.getObject() can return null
The call to getObject() may result in NPE if 'type' is null. Regardless of why that may be the getObject() will simply return null instead of throwing an exception

Resolves #1882
2020-01-10 14:21:51 +01:00
Oleg Zhurakousky
51e8d73116 GH-1880 Fixed application event propagation
Whe framework creates child context it contains different set of listeners then the ones that are in parent. Such child context was created whenevr explicit binder 'environment' was provided. And because BindingCreatedEvent was fired on parent application context it was never acted upon thus preventing subscription on the reactive Supplier

Resolves #1880
2020-01-10 14:03:52 +01:00
Oleg Zhurakousky
d7c2b7aed8 GH-1883 Fixed native encoding support for functions
Addressed native encoding issue similar to the way it was done for the Supplier in #1885 where functions that are configured with useNativeEncoding should be looked up with no content type provided ensuring no output conversion is performed.

Resolves #1883
2020-01-09 20:14:56 +01:00
Oleg Zhurakousky
65940f8904 Removing white spaces
Resolves #1875
2020-01-08 16:50:46 +01:00
Domenico Sibilio
05fa603639 Embed documentation on how to implement custom binders 2020-01-08 16:45:50 +01:00
Kamil Szymanski
0ef225577a Fix typos 2019-12-20 15:39:50 +01:00
buildmaster
c102c0e59d Bumping versions to 3.0.2.BUILD-SNAPSHOT after release 2019-12-18 17:57:40 +00:00
buildmaster
5fa5ce9785 Going back to snapshots 2019-12-18 17:57:40 +00:00
buildmaster
bf99d39324 Update SNAPSHOT to 3.0.1.RELEASE 2019-12-18 17:55:33 +00:00
Oleg Zhurakousky
bc0988e796 added spring repos to plugins 2019-12-18 18:51:23 +01:00
Oleg Zhurakousky
4e63ea92db Upgraded spring-cloud-build and spring-cloud-function
removed repos from POM
2019-12-18 17:46:36 +01:00
Oleg Zhurakousky
435c3f8af9 GH-1871 Added Artem's post to Spring Integration section
Resolves #1871
2019-12-18 15:17:44 +01:00
Oleg Zhurakousky
2091a005c5 GH-1867 Updated documentation with web source
Resolves #1867
2019-12-18 14:25:47 +01:00
Oleg Zhurakousky
528eaf041a GH-1868 removed where possible references to a word 'channel' from documentation
Resolves #1868
2019-12-18 09:14:39 +01:00
Oleg Zhurakousky
92ae704a2f GH-864 added link to community post on custom binder implementation
Resolves #864
2019-12-18 07:53:04 +01:00
Oleg Zhurakousky
e7e04ddca2 GH-1873 Fix null content-type in FunctionConfiguration
Resolves #1873
2019-12-18 07:39:12 +01:00
Oleg Zhurakousky
c6bb38dcd6 Updated Testing section of user guide 2019-12-17 06:29:20 +01:00