Commit Graph

95 Commits

Author SHA1 Message Date
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
Dave Syer
7eb9d9f500 Add support for exploded Boot archive in deployer 2018-09-22 11:17:14 +01:00
Dave Syer
f7b184c4c3 Revert to more convenient signature in FunctionCatalog 2018-09-17 15:07:24 +01:00
Dave Syer
4311aa949c Revert "Use comma instead of pipe (better in URL path)"
This reverts commit f0e2f0b975.
2018-09-17 11:22:17 +01:00
Dave Syer
f0e2f0b975 Use comma instead of pipe (better in URL path) 2018-09-17 10:58:42 +01:00
Dave Syer
9803f4c61e Merge branch '1.x' 2018-08-21 13:44:03 +01:00
Dave Syer
4a6227a777 Extract parent creation logic into a method
Fixes #201
2018-08-21 13:42:31 +01:00
Oleg Zhurakousky
30187b583b GH-199 Added support for typeless lookup in FunctionCatalog
Updated both the interface as well as InMemoryFunctionCatalog BeanFactoryFunctionCatalog and SingleEntryFunctionRegistry implementations
Added tests

Resolves #199
2018-08-15 17:56:29 +02:00
Dave Syer
4c9627aee3 Fix Build and upgrade fully to Boot 2.0
Some tests still ignored.

Also adds draft functional bean registration support. The AWS sample
is using that now (it starts up 4x faster in AWS). To activate the
functional beans user has to supply a main class of type
ApplicationContextInitializer.
2018-06-21 17:57:50 +01:00