Commit Graph

74 Commits

Author SHA1 Message Date
spencergibb
d120eb0731 Updates to*Case() to use Locale.ROOT 2024-10-18 10:53:24 -04:00
Ömer Çelik
1f2a243862 Change "synchronized" to reentrant lock for virtual-threads 2024-10-06 01:10:28 +03:00
Christian Tzolov
9ceb4f64d2 Fix the http trigger signatures in tests, samples and docs. Upgrade the azure maven version
Resolves #1088
2023-11-30 16:42:16 +01:00
spencergibb
4be877c32d Revert "Removes unneeded @Configuration"
This reverts commit 4940292b13.
2023-08-16 14:30:08 -04:00
spencergibb
4940292b13 Removes unneeded @Configuration 2023-08-15 18:13:55 -04:00
Oleg Zhurakousky
efda7285ad Cleanup and fix tests 2023-07-20 16:50:16 +02:00
Christian Tzolov
8486e0bcb9 Refactor the azure adapter tests 2023-07-20 14:33:48 +02:00
Christian Tzolov
6299a5366b Streamline and refactor the azure and the azure-web adapters.
- Add SCF/Azure Gradle sample and docs.
- Move the function-azure-di-samples into standalone projects.
 - Apply the name convetion and project structure for the SCF adaptes.
   E.g.  function-sample-azure-XXX projects under the spring-cloud-function-samples root.
 - Remove the redudant samples.
 - Improve the samples docs and the Adapter generic docs.
- Streamline docs.
- Add azure web adapter sample and README.
- Add Spring Azure Functions banner for azure and azure web adapters.
- azure-web adapter fixes:
  - Fix issues in serverles-web ProxyHttpServletResponse implementation.
  - Remove the custom FunctionClassUtils utils in favor of scf-context/util/FunctionClassUtils.
- Remove redundant files.
- Add FunctionInvoker deprecation annotations.
- Extend the time trigger sample with Retry policies example.
2023-07-19 14:54:05 +02:00
Oleg Zhurakousky
4655f7089e Fix compatibility iussue with Azure test 2023-05-11 17:36:39 +02:00
Oleg Zhurakousky
5228a2cc13 Fix AzureFunctionInstanceInjectorTest for boot 3.1 compatibility 2023-05-11 16:11:19 +02:00
Christian Tzolov
ba1094df63 resolve code style issues
Resolves #999
2023-02-24 10:33:59 +01:00
Christian Tzolov
bb066b9b3f Add support for injecting the ExecutionContext as metadata 2023-02-24 10:17:57 +01:00
Christian Tzolov
af70509b5e Add FunctionInstanceInjector adapter test 2022-12-15 13:50:51 +01:00
Christian Tzolov
1d5dd42bcc Forward port #969 2022-12-15 12:04:51 +01:00
Oleg Zhurakousky
6e1590e66e Polish
Resolves #820
2022-03-08 14:57:01 +01:00
onobc
0dca334614 Simplify if/else in Azure function invoker 2022-03-08 14:39:10 +01:00
onobc
408035b94a Ability to extend default function result handling
Fixes #757
2022-03-08 14:39:10 +01:00
Oleg Zhurakousky
a1a3c236d0 Merge branch '4.x' into main 2022-01-17 15:13:34 +01:00
Oleg Zhurakousky
cd967c793a Cleanup of Azure sample 2021-11-18 15:00:23 +01:00
Oleg Zhurakousky
aea3b548da Cleanup of Azure sample 2021-11-18 14:59:40 +01:00
Oleg Zhurakousky
71f3af825d GH-727 Fix Azure's Supplier<Publisher> logic to avoid NPE
Resolves #727
2021-11-18 13:31:13 +01:00
Oleg Zhurakousky
6031cc83f3 GH-727 Fix Azure's Supplier<Publisher> logic to avoid NPE
Resolves #727
2021-11-18 13:29:07 +01:00
Oleg Zhurakousky
2efb79d470 GH-727 Fix NPE in Azure FunctionInvoker output conversion
Resolves #727
2021-11-17 16:00:22 +01:00
Oleg Zhurakousky
eaf03ebb00 GH-727 Fix NPE in Azure FunctionInvoker output conversion
Resolves #727
2021-11-17 15:58:56 +01:00
Oleg Zhurakousky
47b56ed44e Initial removal of dependencies on AbstractSpringFunctionAdapterInitializer 2021-11-10 16:02:10 +01:00
Oleg Zhurakousky
e297a36a06 Remove FunctionType and dependencies on it 2021-11-10 15:21:31 +01:00
Oleg Zhurakousky
bb400b8386 Fix checkstyle 2021-06-11 09:32:00 +02:00
Oleg Zhurakousky
bfb62150e8 GH-706 Fix application context caching for JDK11 class loaders
Resolves #706
2021-06-08 20:36:23 +02:00
Oleg Zhurakousky
3d1c1e2314 GH-692 Fix reactive support in Azure FunctionInvoker
Resolves #692
2021-05-25 17:25:06 +02:00
Oleg Zhurakousky
7ca389fc18 GH-678 Fix race condition leading to NPE in Azure FunctionInvoker
Resolves #678
2021-04-06 14:02:04 +02:00
Oleg Zhurakousky
98fe5bc8eb GH-437 Refactor Azure request handler
This approach simplifies the existing request handlers while also fixing the invocation model to ensure AC is not created multiple times and ExecutionContext is properly propagated via Message headers
The old request handlers are deprecated
Documentation updates as well as tests
Resolves #437
2021-03-15 11:08:36 +01:00
Oleg Zhurakousky
e82f54d69e GH-600 Fix logic in Azure adapter to ensure proper handling of sveral functions
This also addresses re-initialization of AC when the second function is invoked
Added second function to the azure examples

Resolves #600
2021-03-11 15:26:06 +01:00
Oleg Zhurakousky
29ad49cbf6 GH-437 Pass ExecutionContext via MessageHeader
Caching it as part of ApplicationContext was not the right idea so this changes it
2021-03-10 18:53:25 +01:00
Oleg Zhurakousky
e47fc2d5cf Disconnect FunctionInspector from adapter request handlers and Kotlin module 2020-10-20 13:58:51 +02:00
Oleg Zhurakousky
b8d462678a Deprecate and remove all usages of FunctionInspector 2020-10-19 18:11:11 +02:00
Oleg Zhurakousky
10b1f808ba Consolidate isMessage() operation 2020-10-19 14:57:55 +02:00
anshlykov
8bcfad48fa Migrate to JUnit 5
spring-cloud-function-context

spring-cloud-function-context: fix

spring-cloud-function-web

spring-cloud-function-adapters

spring-cloud-function-samples

spring-cloud-function-deployer; spring-cloud-function-kotlin

Resolves #535
2020-06-10 16:43:04 +02:00
Oleg Zhurakousky
021e384d27 GH-508 Fix casting of the exception in AzureSpringBootRequestHandler 2020-04-27 13:37:29 +02:00
Oleg Zhurakousky
aa721a7b43 GH-456 Fix Azure logging
Added static delegate context which holds target context and is also refreshed with new context on each request

Resolves #456
2020-04-02 16:36:54 +02:00
Eddú Meléndez
a3597614df Fix typos 2020-02-14 21:33:29 -06:00
Oleg Zhurakousky
c36d1b8594 GH-425 Additional enhancements in AzureSpringBootRequestHandler
Added additional enhancements to AzureSpringBootRequestHandler to ensure it has a chance to re-initilaize in the event function name changed
2019-12-18 13:42:17 +01:00
Oleg Zhurakousky
7e0e8ff7ee GH-425 Fix Azure function reinitialization
Fixed Azure function reinitialization on each request

Resolves #425
2019-12-16 19:47:46 +01: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
3fed1f1cd4 GH-264 Simplified signagure for Supplier 2019-04-03 09:42:34 +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
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
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
neokeld
3f4401f9be Simple refactor: isSingleInput already check if input is a collection
Resolves #269
2019-03-01 05:46:45 +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