Commit Graph

57 Commits

Author SHA1 Message Date
Dave Syer
1af0d451cf Migrate to servlet binder for web features 2018-01-03 15:06:33 +00:00
Dave Syer
540b4d378e Update sample builds to latest versions 2017-12-11 15:39:01 +00:00
Dave Syer
e1bce8c292 Change name of property endpoint -> defaultRoute 2017-11-24 13:28:31 +09:00
Dave Syer
f3951cba66 Prefer explicit route to default 2017-11-24 13:21:08 +09:00
Dave Syer
0e21a30459 Don't use properties to fix the function endpoint
There are multiple functions in this sample, and they are
all addressable, so we don't need to force all messages to go
to uppercase.
2017-11-24 12:42:21 +09:00
Dave Syer
b1437fe9c0 Align pom names with artifact ids 2017-10-25 09:50:18 +01:00
Dave Syer
55b62d630b Remove @FunctionScan from samples where possible 2017-10-25 08:53:14 +01:00
Dave Syer
af8b6e253e Revert to snapshots 2017-09-15 17:49:31 +01:00
Dave Syer
858b7404c6 Update to 1.0.0.M1 2017-09-15 17:48:51 +01:00
Dave Syer
fbf62658e7 Cosmetic changes to metadata of sample 2017-09-15 13:51:40 +01:00
Dave Syer
dcdde7e067 Move AWS sample alongside other samples 2017-09-15 13:48:33 +01:00
Dave Syer
472f0e31b6 Prune dependencies and rename samples 2017-09-15 13:44:55 +01:00
Dave Syer
61a902ce9a Add spring-cloud-function-dependencies and use it throughout 2017-09-15 09:34:44 +01:00
Dave Syer
b7aa1d0293 Add gradle builds to all samples
They all work except the AWS one, where the shadow plugin seems to
prang the thin launcher one. Removing the thin plugin gets us
something that works.

Fixes gh-105
2017-09-04 17:59:55 +01:00
Dave Syer
6acacde0b3 Add build.gradle to basic sample 2017-09-04 17:59:39 +01:00
Dave Syer
69a5d1450f Add explicit context dependencies 2017-09-04 17:59:31 +01:00
Dave Syer
a54f101b6d Make sure test jar is in test scope 2017-07-06 11:11:02 +01:00
Dave Syer
cf707fd872 Update thin launcher to 1.0.5 2017-06-29 08:50:33 +01:00
Dave Syer
d826884d02 Ensure @Component scanned from jar on classpath can be inspected
And test it using a new POF sample.
2017-06-28 17:52:37 +01:00
Dave Syer
5243057d2a Skip deployment of samples 2017-06-28 11:07:47 +01:00
Dave Syer
b9eb46c7bd Update thin launcher to 1.0.4 2017-06-27 09:47:43 +01:00
markfisher
9d0d04f4f6 updated task sample for consumer change 2017-05-26 15:26:25 -04:00
Dave Syer
99c7b995e0 Add FunctionFactoryMetadata interface for type discovery
The compiled functions implement that interface which means you can inspect
the signature of the method that created them and discover its
generic types.
2017-05-26 10:09:47 +01:00
markfisher
841d4cdf48 fix compiled consumer sample 2017-05-25 09:27:49 -04:00
Dave Syer
0d2418a47b Add "wrapper" type methods to FunctionInspector
These can be used to more reliably discover whether the user
has declared a function with flux types or "bare" POJOs. They
then pave the way to supporting single valued types in a special
way.

Also consolidate and simplify the logic in FunctionInspector
2017-05-24 09:10:46 +01:00
Dave Syer
6e1f0b9a6e Add FunctionInspector to deployer so types can be inspected
ALso added a bunch of DEBUG logging because it's hard to debug the
deployer app.

Fixed gh-53
2017-05-22 10:57:47 +02:00
markfisher
56b9be9b6e add task sample 2017-05-17 22:35:10 -04:00
markfisher
f6355df58d added rabbit binder dependency to sample 2017-05-05 09:20:03 -04:00
Dave Syer
69c22482d1 Add more subtle content negotiation in web layer
So that single Strings can be POSTed without JSON conversion.
There's still some work to do to support single POJOs in JSON, and
to reach parity with the WebFlux reactive type handlers, but it's
now closer to what we had before we moved the String conversion
out of the function layer.
2017-05-05 09:22:23 +01:00
Dave Syer
e2c257b3e7 Fix sample so the thin.profile=stream works 2017-04-27 12:33:08 +01:00
Dave Syer
39ca7952b9 Fix some tests
There is one behaviour change (you have to POST an array to a function
endpoint if you are sending a body), and also a message converter that
needed to be removed so that arrays are not toStringed in the response
body.
2017-04-25 08:51:31 +01:00
Dave Syer
b80ce1fb3e Update to latest reactor 2017-04-19 10:23:24 +01:00
Dave Syer
36c6b2dba7 Update versions of boot things 2017-04-12 17:57:28 +01:00
Oleg Zhurakousky
2a0653b0e7 Removed redundant entries from POM files
Polished POM files to remove redundant entries that were causing warnings in the IDE. Some notable changes are:
- Removed spring-boot.version from sample project as they inherit it from the parent
- Removed versioning for maven-jar-plugin (was 3.0) from multiple project so it relies on the managed version
- Removed java.version from all spring-cloud-function-* modules as they inherit the one from parent.

Addressed PR comments
- removed references to maven-jar-plugin
2017-03-11 18:31:32 -05:00
markfisher
6044b053ae renamed property keys 2017-03-03 16:35:30 -05:00
markfisher
19fd056a5e add support for simple (non-Flux) types
add objectToStringHttpMessageConverter

CompilerController accepts parameterized types
2017-02-24 12:14:57 -05:00
Dave Syer
22cab6a3f1 Upgrade to stable thin launcher 1.0.0.M2 2017-02-24 17:01:32 +00:00
Dave Syer
fa86e5fb1f Update reactor versions 2017-02-24 10:07:01 +00:00
Dave Syer
d6a4ccf001 Update thin launcher to snapshot for fixes 2017-02-23 14:50:48 +00:00
markfisher
e65641dbb8 removed bytecode loading sample 2017-02-07 14:20:55 -05:00
markfisher
9eb3b033d3 update stream.sh script 2017-02-07 13:29:53 -05:00
markfisher
f20cff0fc8 added FunctionProxyApplicationListener
added support for lambda compiling Supplier and Consumer proxies
2017-02-06 15:56:51 -05:00
Dave Syer
cab48a17f2 Update thin launcher to 1.0.0.M1 2017-01-31 15:35:03 +00:00
Dave Syer
68e83c4bba Update poms to latest Boot and thin launcher 2017-01-31 14:22:31 +00:00
Dave Syer
bc90b9affb Add stream sample to POJO app 2017-01-20 13:12:41 +00:00
markfisher
94a78bdc7f add Function compiling webapp and update scripts 2017-01-19 15:55:49 -05:00
Dave Syer
5c79ff58a6 Workaround bug in thin launcher that brings in wrong reactor version 2017-01-12 21:27:38 -05:00
markfisher
071455b363 Add reactor version explicitly 2017-01-12 09:26:06 -05:00
Dave Syer
216e5c9207 Add MVC body processors to handle Flux
We don't need to cover all the possible uses of Flux (only
Flux<String> really), so this isn't comprehensive coverage of
all the features in Spring WebFlux, but it's good enough for
functions to run with Spring Boot 1.5.
2017-01-12 08:55:46 -05:00
markfisher
0fb31d6d2b removed FunctionRegistry 2017-01-11 21:23:02 -05:00