Commit Graph

78 Commits

Author SHA1 Message Date
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
Dave Syer
a64579dbdb More tests for auto detect of start class 2018-05-18 12:48:36 +01:00
Dave Syer
e1bb5259a9 Support for Start-Class as main 2018-05-18 11:45:41 +01:00
Dave Syer
ebd1646308 Push deployer configuration out of autoconfig
It tends to pop back into function apps where it is not needed
otherwise. Users that want to use the library need to import
the FunctionConfiguration directly using the
@EnableFunctionDeployer convenience annotation..
2018-04-25 17:37:55 +01:00
Dave Syer
7fa0ed7b6b Replace deployer with a simpler library
Instead of an app, it is now a library with some utilities
(principally ApplicationBootstrap) for launching a Spring Boot
application, extracting a function, and registering it in the
FunctionRegistry.
2018-04-25 12:44:20 +01:00
Dave Syer
98cf4dc06e Revert to snapshots 2018-04-16 16:22:02 +01:00
Dave Syer
d1bcb7d142 Update to 1.0.0.M6 2018-04-16 16:04:31 +01:00
trisberg
344ee9a689 Upgrade boot versions
- 1.5.10 to 1.5.11

- 2.0.0 to 2.0.1
2018-04-06 21:07:21 +01:00
Dave Syer
efc99d2af0 Revert to snaphots 2018-03-16 11:40:12 -04:00
Dave Syer
feb8f51c41 Update to 1.0.0.M5 2018-03-16 11:28:53 -04:00
Dave Syer
43e3cb4f27 Fix deployer tests to not use the Boot 2.0 sample 2018-03-15 09:22:51 -04:00
Dave Syer
955e99bfe3 Re-org so that default methods are used everywhere 2018-02-28 14:18:09 +00:00
Dave Syer
33b33adb4b Change FunctionCatalog to key off Class<?>
Makes it possible to support other "function" types in the future.
The user is always taking a risk with the lookup that the object
returned has the generic type desired (but that hasn't changed
with this commit). FunctionCatalog is a lot simpler as a result
and also a lot more flexible.
2018-02-28 14:18:09 +00:00
Dave Syer
616e2825c6 Move FunctionCatalog into context module 2018-02-27 09:05:28 +00:00
trisberg
d515781d6a Some more updates to Boot 1.5.10 2018-02-23 20:00:30 +00:00
Dave Syer
a2a2932715 Revert to snapshots 2018-02-21 07:24:21 +00:00
Dave Syer
72efd58675 Update to 1.0.0.M4 2018-02-20 19:25:11 +00:00
Dave Syer
73098244e3 Revert to snapshots 2018-01-20 11:57:49 +00:00