Oleg Zhurakousky
744e32aed4
Changed default value of 'splittable' attribute of PollableBean annotation to 'true'
2019-11-22 10:32:15 +01:00
Oleg Zhurakousky
00ec268aca
GH-420 Fix discovery of function type from class
...
Fix introspection over ScannedGenericBeanDefinition
Resolves #420
2019-10-29 19:50:39 +01:00
Oleg Zhurakousky
8ec28bb004
GH-419 Fix output type conversion
...
Ensured that we check for the output type and see if and what type of conversion needs to be applied. If output is already a message with payload byte[], then no conversion is necessary
Resolves #419
2019-10-24 12:19:14 +02:00
Oleg Zhurakousky
0d536fae71
Added temporary checks for Kafka stream types
2019-10-23 21:50:27 +02:00
Oleg Zhurakousky
7e3681dafe
Rename Pollable to PollableBean
2019-10-16 14:07:09 +02:00
Oleg Zhurakousky
6c3b574213
Relaxed default function lookup assertion
...
polish
2019-10-11 10:37:17 -04:00
Oleg Zhurakousky
a83d2e70ee
Change PollableSupplier to Pollable
2019-10-07 09:51:08 -05:00
Oleg Zhurakousky
38e06a9dd0
GH-413 Fix type discovery logic in BeanFactoryAwareFunctionRegistry
...
- added 'discoverFunctionTypeFromFunctionalObject' method to FunctionTypeUtils
- added tests to reproduce and validate the issue
2019-10-02 12:23:55 -04:00
Eric Bottard
32fb70a573
Don't assume function is a bean
...
Fixes #412
2019-10-02 13:10:14 +02:00
Oleg Zhurakousky
52f1f04020
GH-395 Add support for non-message json to be converted as POJO
...
Resolves #395
2019-10-01 14:06:17 -04:00
Oleg Zhurakousky
97bea81836
Discover function type from FactoryBean
...
* Fix spring-integration sample
* Added discoverFunctionTypeFromClass() method to FunctionTypeUtils
* A `FactoryBean` may produce a function instance as well.
Add a logic into `BeanFactoryAwareFunctionRegistry` to discover a function type from the `FactoryBean.getObjectType()`
2019-09-25 10:24:07 -04:00
Phillip Webb
bdd4320a59
Migrate from deprecate methods
...
Migrate away from deprecated Spring Boot configuration property
bean classes and methods.
Resolves #410
2019-09-25 09:59:03 -04:00
Oleg Zhurakousky
2217d8aace
Polishing
2019-09-23 11:27:09 -04:00
Oleg Zhurakousky
e490eda5ff
Add skip conversion header logic
2019-09-23 11:15:25 -04:00
Oleg Zhurakousky
11a6e923ee
GH-409 Fix default discovery of functions
...
Fixed discovery of functions to ensure that even in cases where default function is found but it's type can not be determined such function is discarded. This effectively ensures that if the actual instance does not match the declared type such function is not treated as function.
Resolves #409
2019-09-22 17:15:19 -04:00
Oleg Zhurakousky
9011615c30
Minor enhancements and polishing to accomodate s-c-stream requirements for multi-in/out bindings
2019-09-17 17:53:54 +02:00
Oleg Zhurakousky
d93febd4c4
GH-364 Additional cleanup and small refactoring for Kotlin lambda support
2019-09-10 13:48:32 +02:00
Oleg Zhurakousky
2aed5abff8
GH-408 Enhance RoutingFunction with SpEL and application properties
...
- Added initial support for communicating routing instructions via SpEL thru both message headers and application properties
- Added support for communication function definition via application properties
- Added additional tests and updated documentation
Resolves #408
2019-09-10 09:25:40 +02:00
Oleg Zhurakousky
11ac6cd679
GH-364 Fix type discovery on Kotlin lambdas
...
Added FunctionRegistration for each Kotlin lambdas with the correct types
Resolve #364
2019-09-06 20:04:24 +02:00
Oleg Zhurakousky
6c722e59ec
Upgraded visibility on FunctionContextUtils.getParamTypesFromBeanDefinitionFactory
2019-09-06 17:19:06 +02:00
Oleg Zhurakousky
992c70762e
GH-381 Add tests to validate lazy initialization effect
...
Resolves #381
2019-09-04 18:42:01 +02:00
Oleg Zhurakousky
7d5f47f112
GH-403 Added PollableSupplier marker annotation
...
Resolves #403
2019-08-27 14:30:05 +02:00
Oleg Zhurakousky
9514ed7649
Fix discovery of the default function
2019-08-22 20:33:42 +02:00
Oleg Zhurakousky
7611cba69e
GH-387 Added initial support for flexible function signatures
...
- Added support for simple POJO functions
- Added additional utility methods
2019-08-22 16:58:18 +02:00
Oleg Zhurakousky
591b3bf531
Fixed README generation and polished few tests
2019-08-19 17:08:12 +02:00
Oleg Zhurakousky
b64af80fb1
Improved archive loader to work with Java 11
...
Added tests for deploying multi-input/output apps and jars
Polished logging
2019-08-12 10:09:43 +02:00
Oleg Zhurakousky
3349c3abed
Added support for class loader to share common transport packages such as reactor
...
Simplify user exposure to deploying archives
2019-08-10 14:44:35 +02:00
Oleg Zhurakousky
1248eaaa09
Imprived class loading for new deployer
2019-08-09 18:42:48 +02:00
Oleg Zhurakousky
d53fc6b672
Added support for passing conversion hint to MessageConverter
2019-08-07 15:54:30 +02:00
Oleg Zhurakousky
6312b5e0aa
Fixed BeanFactoryAwareFunctionRegistry default function definition lookup
2019-08-06 17:48:03 +02:00
Oleg Zhurakousky
d3b31a6f6b
Added initial support for loading functions by type in new deployer
2019-08-06 14:23:34 +02:00
Oleg Zhurakousky
38981003b9
Simplified MessageConverter configuration
2019-07-31 08:28:34 +02:00
Oleg Zhurakousky
14451272fe
Added additional logging
2019-07-31 08:27:52 +02:00
Oleg Zhurakousky
13794b08d0
Minor polishing and additional logging for BeanFactoryAwareFunctionRegistry
2019-07-30 15:54:23 +02:00
Oleg Zhurakousky
2a926cab2f
Temporarily ignoring several deployer tests
...
Fixed test JARs poms
2019-07-30 11:33:17 +02:00
Oleg Zhurakousky
90c69368c2
Removed FunctionCatalog, BeanFactoryFunctionCatalogTests, ContextFunctionPostProcessorTests
...
Deprecated FluxWrapperDetector
Clean up and polishing of new BeanFactoryAwareFunctionRegistry
2019-07-30 09:06:34 +02:00
Oleg Zhurakousky
f5cf937985
Fixed output conversion for Message<byte[]> functions
...
- cleaned up BeanFactoryAwareFunctionRegistry
- Added javadoc to FunctionCatalog.lookup(String functionDefinition, String... acceptedOutputMimeTypes)
2019-07-27 12:41:07 +02:00
Oleg Zhurakousky
9b1e69f05d
Removed auto-fluxing Supplier result when Supplier is not reactive
2019-07-26 15:33:26 +02:00
Oleg Zhurakousky
74ca973bc9
Minor polishing to accomodate edge cases in s-c-stream
2019-07-25 17:07:02 +02:00
Oleg Zhurakousky
694c7fa1bb
Adding support for extracting payload only for cases where conversion is not necessary
2019-07-24 13:57:17 +02:00
Oleg Zhurakousky
243cf95eca
GH-388 Adding utility to interogate Function types
...
- refactoring of BeanFactoryAwareFunctionRegistry to eliminate the need for FunctionType as it takes certain assumptions that are no longer valid
- adding support for multiple acceptedOutputTypes to FunctionCatalog
Resolves #388
2019-07-24 12:12:52 +02:00
Oleg Zhurakousky
fbeee8bc37
Renamed new registry implementation to BeanFactoryAwareFunctionRegistry
...
- added initila javadoc
- polished few tests
2019-07-17 14:48:05 +02:00
Oleg Zhurakousky
93f7a248a5
Added initial support for lazy style FunctionCatalog/Registry which:
...
- does not rely on any of the existing wrappers and instead relies on internal wrapper which performs in-flight/just-in-time wrapping and unwrapping from reactive to imperative types
- performs transparent type conversion relying on MessageConverters and ConversionService
- supports multiple inputs/outputs
2019-07-17 13:54:02 +02:00
Dave Syer
b4f5c0339f
Add flag for disabling component scan
2019-07-12 17:11:58 +02:00
Oleg Zhurakousky
1cf42f95f6
GH-383 Ensure FunctionType retains ParameterizedType as 'type' filed
...
Resolves #383
2019-07-12 17:06:50 +02:00
Dave Syer
57689755f2
Add support for spring.cloud.function.scan.packages in functional
...
Fixes gh-372
2019-06-06 16:40:17 +01:00
Oleg Zhurakousky
40b070a8d1
removed commented code
2019-05-29 09:13:15 +02:00
Oleg Zhurakousky
2dad9b65c1
Bumped to spring-cloud-build 2.2
...
Fixed boot 2.2 related errors
set master version to 2.2.0
2019-05-28 13:22:02 +02:00
Oleg Zhurakousky
52b8d67092
Fixed RoutingFunction ClassCast exception
2019-05-21 08:41:10 -05:00
Oleg Zhurakousky
b8c1003309
Improvements RoutingFunction and MessageFunction
...
Added error handling to RoutingFunction
Added support for Function<Flux, Flux> to MessageFunction
2019-05-17 15:39:54 +02:00