Commit Graph

669 Commits

Author SHA1 Message Date
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
2c8f3644da Ignored remaining failing tests 2019-07-17 13:57:44 +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
Oleg Zhurakousky
85af2e4ed6 Increased sleep time in randomly failing test 2019-07-17 11:05:05 +02:00
Dave Syer
b4f5c0339f Add flag for disabling component scan 2019-07-12 17:11:58 +02:00
Dave Syer
307292b959 Add proxyTargetBeans = false and fix some tests 2019-07-12 17:11:51 +02:00
Dave Syer
521c6d3397 Add proxyTargetBeans = false 2019-07-12 17:11:26 +02:00
Oleg Zhurakousky
70d46f8b9f GH-386 Fixed NPE for non-existing functions invoked as REST endpoints
Resolves #386
2019-07-12 17:09:46 +02:00
Dave Syer
3ae9d0523d Add README to custom AWS sample 2019-07-12 17:09:33 +02:00
Dave Syer
5e3111bf80 Fix conditions for custom AWS runtime
Conflicts:
	spring-cloud-function-samples/function-sample-aws-custom/pom.xml
2019-07-12 17:08:34 +02:00
Kane Zhu
1de8526b7a Fix the issue that api gateway handler of AWS does not honor the encrypted body data.
Resolves #382
2019-07-12 17:07:02 +02:00
Oleg Zhurakousky
1cf42f95f6 GH-383 Ensure FunctionType retains ParameterizedType as 'type' filed
Resolves #383
2019-07-12 17:06:50 +02:00
Olga Maciaszek-Sharma
e6625394a8 Adjust branch variable value 2019-07-12 17:06:02 +02:00
Olga Maciaszek-Sharma
b0ef7b19d1 Add build file setup documentation
Resolves #377
2019-07-12 17:05:51 +02:00
Oleg Zhurakousky
cf5cd49b72 fixed checkstyle 2019-07-12 17:04:45 +02:00
Oleg Zhurakousky
493b9da295 Simplified enhanecements to SpringBootApiGatewayRequestHandler introduced by previous commit"
Resolves #249
Resolves #375
2019-07-12 16:59:33 +02:00
Markus Gulden
01e813ec52 GH-249, Add full HTTP support to SpringBootApiGatewayRequestHandler
* Add support for handling APIGatewayProxyRequestEvent objects with
empty body (should apply to all GET and DELETE requests, which
comply with recommandation of RFC-7231)

* Add support ReSTful APIs: path and query string parameters as well
as the HTTP method are now extracted from the
APIGatewayProxyRequestEvent object and forwarded to the function
as message headers

* Extend unit tests accordingly
2019-07-12 16:59:21 +02:00
Oleg Zhurakousky
570bbb23b5 Fixed doc rendering 2019-07-12 16:52:33 +02:00
Oleg Zhurakousky
2afb53f967 Added cleanup code to the failing AWS test 2019-06-07 14:41:45 +02:00
Oleg Zhurakousky
cfd24a8316 Upgraded master to 3.0.0.BUILD-SNAPSHOT 2019-06-06 18:47:09 +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
Oleg Zhurakousky
076aa6f880 GH-363 Fixed NPE on AbstractBeanDefinition.getBeanClass() call
Resolves #363
2019-05-13 19:32:44 +02:00
Oleg Zhurakousky
5965447a6b Update home.adoc 2019-05-07 18:03:30 +02:00
Oleg Zhurakousky
0d51b30538 Update README.adoc 2019-05-07 17:37:01 +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
b7d2557656 fixing doc links
polishing test
2019-05-07 11:07:01 +02:00
Oleg Zhurakousky
326eb59997 Fixing doc URL instructions for release 2019-05-07 10:34:06 +02:00
Oleg Zhurakousky
1308c1c368 Added Anshul to doc authors
Resolves #362
Resolves #359
2019-05-07 10:20:21 +02:00
Walliee
372a3ce49d Add additional documentation around AWS jar layout
- Add to note explain when resource transformers are needed
- Fix relative linking in the adapters directory

see #359
2019-05-07 10:18:41 +02: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
abeb652830 Fixed condition for spring.cloud.function.web.export.enabled property 2019-05-03 13:25:58 +02:00
Oleg Zhurakousky
f2e4cea47d GH-263 Added more AWS tests
Resolves #263
2019-05-03 09:27:04 +02:00
Oleg Zhurakousky
475edb5ff7 GH-354 Fixed documentation to reflect recent updates
Resolves #354
2019-05-02 17:07:00 +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
Marcin Grzejszczak
58ec9bf8a6 Merge pull request #361 from spring-cloud/fix/sagan-docs
Added the sagan adoc files
2019-04-30 08:34:02 +02:00
Haytham Mohamed
e6b779d6fc Added the sagan adoc files 2019-04-29 12:16:24 -05:00
Oleg Zhurakousky
d9582a9867 GH-358 Fixd NPE in flux FunctionWebUtils
added tests

Resolves #358
2019-04-29 16:07:56 +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
Markus Gulden
27344d7098 GH-317, Implement HTTP request-specific handler for Azure adapter
* Handler extends AzureSpringBootRequestHandler with types
  HttpRequestMessage and HttpResponseMessage (which are required by
  Azure Functions for HTTP-triggered functions)

* Handler extracts request path, query string parameters as well as the
  HTTP method from the HttpRequestMessage object and forwards them to
  the function as message headers

* Handler creates an HttpResponseMessage with the response coming from
  the called function

* Created unit tests accordingly

GH-317, Implement HTTP request-specific  handler for Azure adapter

* Handler extends AzureSpringBootRequestHandler with types
  HttpRequestMessage and HttpResponseMessage (which are required by
  Azure Functions for HTTP-triggered functions)

* Handler extracts request path, query string parameters as well as the
  HTTP method from the HttpRequestMessage object and forwards them to
  the function as message headers

* Handler creates an HttpResponseMessage with the response coming from
  the called function

* Created unit tests accordingly

GH-317, Implement HTTP request-specific  handler for Azure adapter

* Handler extends AzureSpringBootRequestHandler with types
  HttpRequestMessage and HttpResponseMessage (which are required by
  Azure Functions for HTTP-triggered functions)

* Handler extracts request path, query string parameters as well as the
  HTTP method from the HttpRequestMessage object and forwards them to
  the function as message headers

* Handler creates an HttpResponseMessage with the response coming from
  the called function

* Created unit tests accordingly
2019-04-29 13:42:55 +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