Oleg Zhurakousky
21dbe4cd1f
GH-1002 Cleane up non-jackarta dependencies
...
Resolves #1002
2023-02-24 11:13:20 +01:00
Oleg Zhurakousky
4c83f34c9b
Remove deprecations
2022-10-25 16:21:06 +02:00
Oleg Zhurakousky
83980d34e1
Add new spring-boot .imports files and move auto-configuration classes there
2022-09-22 17:01:33 +02:00
onobc
d475b7bcea
Remove now unnecessary override of createClassLoader
...
Resolves #810
2022-02-15 17:11:50 +01:00
Oleg Zhurakousky
eccafd3278
GH-731 Add support for SDK CloudEvent type
...
The type itself comes form cloud event sdk. And while s-c-function provides native support for cloud events, this is necessary for cases when user uses CloudEvent type in the signature of a function
Resolves #731
2021-08-31 17:15:51 +02:00
Oleg Zhurakousky
fe6722bfe4
Make FunctionDeployerConfiguration conditional on spring.cloud.function.location property
2021-08-17 08:34:50 +02:00
Oleg Zhurakousky
f06892f7ff
GH-714 Add support for component scanning to function deployer
...
We already support it for standard deployment, so this fix extends such support for functions deploye via function deployer feature
Resolves #714
2021-07-16 12:34:35 +02:00
Oleg Zhurakousky
5b51b3397d
GH-638 Enhance the lifecycle of function deployemnt in s-c-f-deployer
...
Resolves #638
2021-02-01 13:35:59 +01:00
Oleg Zhurakousky
4e322d3fa0
GH-555 Add missing maven resource support to function deployer
...
Resolves #555
2020-07-21 16:31:23 +02:00
Oleg Zhurakousky
b0d22f89d7
Address boot 2.3 upgrade issues
...
- addressed getClassPathArchives() deprecation
- made temporary change to address super.createClassLoader(URL) call in boot - see https://github.com/spring-projects/spring-boot/pull/20851
2020-04-06 16:07:50 +02:00
Oleg Zhurakousky
9434a68bd2
GH-461 Add to register more than one functional class
...
Similar to the way we allow multiple functions to be listed with 'definition' property, this enhancement allows several functional classes to be deployed
Resolves #461
2020-03-23 14:51:56 +01:00
Oleg Zhurakousky
202d617edd
Add Message and MessageConverter to the list of classes loaded by deployer
2020-03-02 15:14:48 +01:00
Oleg Zhurakousky
4f699a32b7
Revert "Temporary attempt on addressing deploying custon message converters"
...
This reverts commit e75bb67608 .
2019-11-20 13:16:37 +01:00
Oleg Zhurakousky
6c675805fa
Revert "Made sure custom converters are at the top"
...
This reverts commit 109da900f0 .
2019-11-20 13:16:23 +01:00
Oleg Zhurakousky
109da900f0
Made sure custom converters are at the top
2019-11-15 14:16:25 +01:00
Oleg Zhurakousky
e75bb67608
Temporary attempt on addressing deploying custon message converters
2019-11-15 13:03:15 +01: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
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
Eric Bottard
339bbdca87
Use proper traditional CL parent delegation.
...
This ultimately allows loading all JRE classes correctly, not only those
whose name are whitelisted.
2019-09-02 09:34:39 +02:00
Oleg Zhurakousky
7eb8cac663
Added test for previous commit
2019-08-19 18:09:55 +02:00
Eric Bottard
611758fbd3
Support exploded directories in addition to jar files.
2019-08-19 17:50:46 +02:00
Oleg Zhurakousky
28d6975a9a
GH-394 Ensured that arguments are propagated to the packaged archive deployment
2019-08-14 19:57:57 +02:00
Oleg Zhurakousky
e27f1e9d97
GH-394 Ensured deployer supports old Function properties
...
Resolves #394
2019-08-13 21:12:28 +02:00
Oleg Zhurakousky
df9a2738d5
Bumped phase of FunctionDeployerConfiguration
2019-08-13 15:30:40 +02:00
Oleg Zhurakousky
080b708de1
Adjusted docs to benefit from recent s-c-build improvements
2019-08-12 19:03:07 +02:00
Oleg Zhurakousky
ed2fa9bb7a
Renamed deployer-new to deployer, removed old deployer
2019-08-12 17:26:22 +02:00
Oleg Zhurakousky
bfcea95268
Revert "temporary"
...
This reverts commit 746da2de43 .
2019-07-26 18:47:33 +02:00
Oleg Zhurakousky
746da2de43
temporary
2019-07-26 17:25:13 +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
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
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
Marcin Grzejszczak
c6ddfe1af4
Added checkstyle for tests
2019-02-03 15:34:10 +01:00
Marcin Grzejszczak
e4b08a083c
Turned on checkstyle
2019-02-01 15:48:32 +01:00
Oleg Zhurakousky
de73c51462
Allowed 'java.*', rather then just 'java.annotation' loading for jdk 11
2019-01-28 13:59:28 +01:00
Oleg Zhurakousky
a2df13d1b3
GH-251 Fixed JDK 11 issues
...
- Added JDK 11 hook in FunctionCreatorConfiguration for javax.annotation to be loaded from current CL
- Ensured the file: protocol resources end with the forward slash. See UrlClassPath.getLoader of JDK 11 for more details as to why
- Re-enabled conditional tests by removing Java 8 assumptions
- Part of the issue was also, the invoker plugin which was only generating ‘it/..’ directory every other time due to exists condition, thus resulting in some test failures every other time (missing directory)
Resolves #251
2019-01-25 15:13:55 +01:00
Oleg Zhurakousky
f405527dd7
GH-251 Initial attempt to fix Java 11 issues
...
polishing
polishing
2019-01-23 20:15:49 +01:00
Dave Syer
cca2833f94
Tighten up contract for SingleEntryFunctionRegistry
...
And add some tests. Fixes gh-250.
2019-01-17 17:54:12 +00:00
Oleg Zhurakousky
66009830fd
GH-234 Ensured Function-Class is treated as function.bean
...
. . . yet function.bean will take precedence over Function-Class
2018-11-19 09:38:00 +01:00
Oleg Zhurakousky
221d0f2038
GH-234 Fixed Function-Class detection
...
Fixed Function-Class detection to ensure it is not treated as main. The regression was introduced with 0287a5d
Resolves #234
2018-11-19 07:55:36 +01:00
Dave Syer
c285a0f082
Make test work on command line properly
...
Surefire wraps everything in a .jar to run the tests, and the
manifest has a main class, so that fools the main class
detection.
2018-11-17 16:27:42 +00:00
Dave Syer
0287a5d8f3
Extend search for main class to include custom manifest entries
2018-11-16 16:16:12 +00:00
Dave Syer
cd89f45191
Add support for empty function.bean
...
If there is a unique function it should be unambiguous. This change
also supports multiple functions, but the naming is unhelpful then
("function[0,1,2,]").
2018-11-12 14:07:36 +00:00
Dave Syer
9c6c7d09d4
Ensure ContextRunner class can be loaded
...
Even if FunctionalSpringApplication is not available.
2018-11-12 12:02:55 +00:00
Dave Syer
10f446d6b5
Ensure ContextRunner can be used to run a non-functional application
2018-11-12 11:07:36 +00:00
Dave Syer
aba50816f7
Add support for detecting FunctionRegistration or Function
...
User can now provide a Function or an ApplicationInitializer. Also
the initializer can create a FunctionRegistration with the handler
name instead of a bean with the handler name. Better control of
input and output types that way.
Fixes gh-231
2018-11-09 12:38:37 +00:00
Dave Syer
14af9647b3
Fix test that wasn't supposed to be ignored
2018-10-11 15:08:19 +01:00
Dave Syer
3a168a8ef4
Ignore some tests in JDK11
2018-10-10 17:00:01 +01:00
Dave Syer
ac23556277
Fix a few failing tests in JDK11
2018-10-10 12:07:51 +01:00
Dave Syer
bb2e488105
Add flux sample for tests
2018-10-10 11:04:19 +01:00