243 Commits

Author SHA1 Message Date
buildmaster
c031dd04e2 Bumping versions to 2.1.2.BUILD-SNAPSHOT after release 2019-06-06 14:28:12 +00:00
buildmaster
f5a55fcdbe Going back to snapshots 2019-06-06 14:28:11 +00:00
buildmaster
1063b5b3d1 Update SNAPSHOT to 2.1.1.RELEASE 2019-06-06 13:19:00 +00: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
Oleg Zhurakousky
076aa6f880 GH-363 Fixed NPE on AbstractBeanDefinition.getBeanClass() call
Resolves #363
2019-05-13 19:32:44 +02:00
buildmaster
d28fc9978a Bumping versions to 2.1.1.BUILD-SNAPSHOT after release 2019-05-07 10:08:10 +00:00
buildmaster
e44c61754c Going back to snapshots 2019-05-07 10:08:09 +00:00
buildmaster
7fafbe7848 Update SNAPSHOT to 2.1.0.RELEASE 2019-05-07 09:12:21 +00:00
Oleg Zhurakousky
4d9cdb9750 GH-238 Added initial support for RoutingFunction
- Added initial implementation of RoutingFunction which is bootstrapped optionally based on setting ‘spring.cloud.function.routing.enabled’ property to true.
- Added initial documentation and tests

Resolves #238
2019-05-07 10:13:42 +02:00
Oleg Zhurakousky
cb952648b3 Revert "GH-355 Added support for deffered initialization of Function Catalog"
This reverts commit cd0ca2f7dc.
2019-05-01 04:48:21 +02:00
Oleg Zhurakousky
f16a2c76cf GH-317 Polishing and minor refactoring in AzureSpringBootHttpRequestHandler
- Moved convertOutput() to base class and added input value as an argument
- Added javadoc
- fixed checkstyle violations

Resolves #317
Resolves #360
2019-04-29 13:46:13 +02:00
Oleg Zhurakousky
09053d3f59 GH-357 Fixed MAIN_CLASS lookup logic
Resolves #357
2019-04-17 08:26:15 +03:00
Oleg Zhurakousky
cd0ca2f7dc GH-355 Added support for deffered initialization of Function Catalog
Resolves #355
2019-04-11 16:55:16 +02:00
Walliee
5256ee177c Fix BeanFactoryFunctionCatalog initialization when a
BeanFactoryPostProcessor that depends on FunctionCatalog is present.

On application context refresh, BeanFactoryPostProcessors are
invoked before registering BeanPostProcessor(s).
If a BeanFactoryPostProcessor that depends on FunctionCatalog is present,
then when ContextFunctionCatalogAutoConfiguration tries to fetch
all functional beans (Function/Supplier/Consumer), the creation of beans
where no default constructor exists fails as
AutowiredAnnotationBeanPostProcessor hasn't been registered yet.

Initialing BeanFactoryFunctionCatalog on ApplicationReadyEvent
delays the collection of functional beans to an even later point in
the lifecycle.

fixes #352

Fix test name

Switch to use SmartInitializingSingleton

Resolves #353
2019-04-11 16:53:13 +02:00
buildmaster
9df7455a30 Going back to snapshots 2019-04-08 14:18:29 +00:00
buildmaster
24740e4e17 Update SNAPSHOT to 2.1.0.RC1 2019-04-08 14:14:23 +00:00
Oleg Zhurakousky
6644130297 Polished FunctionType experimental constructor 2019-04-04 21:02:23 +02:00
Oleg Zhurakousky
9a3181532c More cleanup and simplification in AbstractComposableFunctionRegistry
- We now rely on single map (no consumers, suppliers)
- Simplified FunctionCreatorConfiguration to map FunctionType between class loaders
2019-04-04 19:55:08 +02:00
Oleg Zhurakousky
085204bad2 Miscellaneous clean up, refactoring
Simplified FunctionCatalog structure by no longer registering the actual target function since it is available in wrapper anyway.
Cleaned up logic in RequestProcessor
2019-04-03 20:33:04 +02:00
Oleg Zhurakousky
edba4c428e GH-264 Added initial support for Supplier and Consumer for Azure
Resolves #264
2019-04-03 09:37:01 +02:00
Oleg Zhurakousky
57ae22adb9 GH-350 Fixed NPE due to missing main class
Fixed NPE due to the missing main class - a condition that could be cause my missconfiguration
Added additional assertions
Added more descriptive error message
Added MAIN_CLASS system property to the search path
Added tests

Resolves #350
2019-04-02 09:02:08 +02:00
Dave Syer
5d51c6187f Use registrar instead of registering individual bean definitions
Fixes gh-351
2019-04-01 14:27:43 +01:00
Oleg Zhurakousky
210d9ad431 Added additional test and polished HybridFunctionalRegistrationTests 2019-04-01 14:30:11 +02:00
Spring Operator
3b573c27ac URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 247 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-21 12:48:58 -05:00
buildmaster
0fe8693565 Going back to snapshots 2019-03-20 08:49:57 +00:00
buildmaster
60f11baf57 Update SNAPSHOT to 2.1.0.M1 2019-03-20 08:45:24 +00:00
Spring Operator
5bf9bebbb2 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://cloud.spring.io/ with 1 occurrences migrated to:
  https://cloud.spring.io/ ([https](https://cloud.spring.io/) result 200).
* http://maven.apache.org/xsd/assembly-1.1.2.xsd with 1 occurrences migrated to:
  https://maven.apache.org/xsd/assembly-1.1.2.xsd ([https](https://maven.apache.org/xsd/assembly-1.1.2.xsd) result 200).
* http://maven.apache.org/xsd/maven-4.0.0.xsd with 28 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 56 occurrences
* http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 with 2 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 29 occurrences
2019-03-19 21:21:48 -05:00
Oleg Zhurakousky
87a878879c GH-293 Enhanced endpoint mapping support for functional form context configuration
- Enhanced HTTP endpoint mapping support for 'functional form' context configuration ensuring it can register multiple endpoint to maintain the same behaviour as with regular application context
- Additional consolidation around Function Catalog
- Added identical test for functional and non-functional form endpoint configuration.

Resolves #293
2019-03-19 08:17:13 +01:00
Oleg Zhurakousky
9b2c954e7a Upgraded spring-cloud-task to 2.1.1
pllished some code and javadoc in AbstractComposableFunctionRegistry
2019-03-06 13:28:28 +01:00
Oleg Zhurakousky
d20171d196 GH-265 Added support for injecting execution context
- Added support for injecting target execution context into the ApplicationContext in AbstractSpringFunctionAdapterInitializer, effectively making it available to all adapters (if one is provided)
- Added test, docs

Resolves #265
2019-03-01 17:07:03 +01:00
Oleg Zhurakousky
656741958b Additional simplifications in AbstractComposableFunctionRegistry 2019-03-01 05:43:20 +01:00
Oleg Zhurakousky
5b18fd7b3c Simplified support for implicit functions in composition
added test for namless Supplier | Function
2019-02-28 22:23:02 +01:00
Dave Syer
8d834a7483 Support for implicit functions in composition
If there is only one function then empty String can be used as a
name to look it up.
2019-02-28 10:05:13 -05:00
Oleg Zhurakousky
b48c7b5dc0 Added initial implementation of check for supported function signatures 2019-02-28 15:41:04 +01:00
Oleg Zhurakousky
cdca44f714 Polished adapter initializers consolidation effort
- Added ability to retrieve input type from FunctionRegistration (if available) in AbstractSpringFunctionAdapterInitializer
- Removed azure/AzureSpringFunctionInitializer and aws/SpringFunctionInitializer
- Added additional tests in AWS and Azure modules
- See 0189c578ef for additional info
2019-02-25 19:37:34 +01:00
Dave Syer
41f66e9b48 Fix checkstyle and compiler errors 2019-02-25 15:15:35 +00:00
Dave Syer
ab9c82753f Add null check for function registration in composite 2019-02-25 14:35:14 +00:00
Dave Syer
32987230c1 Add support for composing function of Message with plain function
Fixes gh-267 at least for the most common cases.
2019-02-25 13:53:29 +00:00
Dave Syer
616bb1f685 Convert function composer to work with registrations 2019-02-25 13:51:17 +00:00
Oleg Zhurakousky
0189c578ef GH-266 Consolidated Adapter infrastructure
- Moved common logic into a new AbstractSpringFunctionAdapterInitializer
- Modified Azure and AWS request handlers to extend from it
- Deprecated both AzureSpringFunctionInitializer and SpringFunctionInitializer(AWS)

Resolves #266
2019-02-25 13:25:08 +01:00
Dave Syer
155d76b1a5 Ensure function types and names are registered in memory 2019-02-21 17:39:24 +00:00
Dave Syer
aaf268ea40 Ensure FunctionTypes get registered for composite functions
Without this change the type of a composed function in the
InMemoryFunctionCatalog is always null. The key is to register
the type at the same time as the function is registered.

Also some format and javadoc fixes (cosmetic)
2019-02-21 09:53:15 +00:00
Dave Syer
6865d53c91 Update to 2.1.0 snapshots in all the other places 2019-02-20 13:19:03 +00:00
Oleg Zhurakousky
e86479e839 Polishing, javadoc. . . 2019-02-19 14:12:00 +01:00
Dave Syer
a622d86d3b Add support for MonoSupplier 2019-02-19 10:28:41 +00:00
Oleg Zhurakousky
a945f34ebd GH-261 additional cleanup in function catalog consolidation 2019-02-18 23:15:21 +01:00
Oleg Zhurakousky
0d7e0cc57c GH-261 Added support for function composition InMemoryFunctionCatalog
- Refactored InMemoryFunctionCatalog and BeanFactoryFunctionCatalog into common catalog implementation
- Added initial test

Resolves #261
2019-02-18 22:05:19 +01:00
Oleg Zhurakousky
94106dba48 GH-258 Polishing around duplicqte registration
Removwd formatter plugin
Added additional test

Resolves #258
Resolves #259
2019-02-15 10:15:13 +01:00
Semyon Fishman
95a462467e GH-258, Avoid duplicate registration of functional bean
Added logic in FunctionalSpringApplication to avoid registering the functional bean twice.  This issue occured when executing in "hybrid" mode, and using the same bean as both the application context source and functional bean.
2019-02-13 11:40:25 -05:00