Commit Graph

598 Commits

Author SHA1 Message Date
Ilayaperumal Gopinathan
e7e799b8d8 Support native serialization in MessageChannelBinder
Resolves #691

- If the broker supports native serialization, then the serialization of the
   outbound payload is not done by the binder's producer binding outbound message handler.
- At the consumer binding's inbound message handler, the extraction of embedded headers
   is performed only for the byte[] payload (given the deserialization would have already
   occurred at the broker level)
- Add correspoinding tests in Kafka binder implementation
- Rely on the received message type to decide on using out of the box deserializer (only
   if byte[] message payload is received)
2016-11-04 10:49:12 -04:00
Marius Bogoevici
6c9976b77f Fix EntityPackageScanner to property merge the packagesToScan
Fixes #686

Removing unused imports

Simplify the registration process

- rely on EntityScanPackages.register to properly merge registered packages
- add additional tests validating the process
2016-10-31 13:55:58 +05:30
Marius Bogoevici
18e7f0b47d Minor polishing 2016-10-24 20:21:37 -04:00
Ilayaperumal Gopinathan
6fc6445c4f Support namespace based prefixed properties
- In AggregateApplication, support specifying commandline and environment properties based on namespace for each containing applications using namespace as prefix
  - As usual, command line properties override the environment as well as the properties specified inside the application
2016-10-24 20:02:10 -04:00
Soby Chacko
8c33609f2b Test debugging around receive() in AbstractBinderTests 2016-10-18 20:05:11 -04:00
Ilayaperumal Gopinathan
580e268a97 POM changes to use version name effectively
Remove the use of parent version inside schema
2016-10-17 15:48:39 -04:00
Ilayaperumal Gopinathan
bfad7b81a7 Use asciidoc property to specify spring boot version in Initializr
Address review comments
2016-10-13 13:39:58 -04:00
Ilayaperumal Gopinathan
5d2860bc53 - Fix NPE for wildcard/generic type reactive stream listener @Input type
- Set argumentClass to Object when using wildcard/generic types if the StreamListener method parameter for @Input annotated type uses wildcard/generic type, then set the argumentClass to `Object.class` instead of null.

Resolves #665

Address review comments
2016-10-13 13:23:12 -04:00
Rajiv Jivan
4e3c43af44 Fix typo in the doc
Addresses https://github.com/spring-cloud/spring-cloud-stream/issues/679
2016-10-07 16:24:24 +05:30
Mark Pollack
1e8434d32e Update doc for Spring Initializr usage 2016-10-05 15:17:31 -04:00
bamboo
cdbc9cd12d [artifactory-release] Next development version 2016-09-21 21:13:47 +00:00
bamboo
d739052c55 [artifactory-release] Release version 1.1.0.RELEASE 2016-09-21 21:13:47 +00:00
Marius Bogoevici
198ba13be6 Updated dependency versions 2016-09-21 16:46:59 -04:00
Marius Bogoevici
810803859a Expose channel metrics for aggregate applications
Fixes #660 #661

* Fix an issue where aggregated applications were not enabling web endpoints
* Add spring-integration-jmx as mandatory dependency, so that SCSt applications
  expose metrics by default;
* Remove `AggregatorParentConfiguration` as redundant
* Register a `PublicMetrics` instance for each aggregate, using a customized version
  of SpringIntegrationMetricReader
2016-09-21 15:09:46 +05:30
Marius Bogoevici
d11b3cf08d Allow instanceIndex and instanceCount to be set per binding
Fixes #654
2016-09-20 17:44:14 -04:00
Dave Syer
d5e374651e Ensure version is scraped from parent pom 2016-09-20 13:48:13 +01:00
Gunnar Hillert
cce9b8b138 gh-642 Fix Figures missing in references PDF
* Fix Figures missing in references PDF
* Ensure admotion graphics show up in PDF
* Ensure authors are shown for PDF
* Fix copyright notice spacing
2016-09-19 22:39:43 -04:00
Marius Bogoevici
6834c28674 Deprecate @Bindings
Fixes #656

Remove @Bindings from tests

Remove deprecated @Bindings annotation from tests
Rename tests which were previously ignored due to name
2016-09-19 20:47:35 -04:00
markfisher
15b562132a polishing 2016-09-19 15:47:19 -04:00
Ilayaperumal Gopinathan
0d8bbc6665 Minor polishing on message converter doc
This fixes #616

Add example for MessageConverter
2016-09-19 15:17:14 -04:00
Marius Bogoevici
c9192c6c8e Update README.adoc 2016-09-17 12:29:16 -04:00
Marius Bogoevici
b797018dff Adds 'spring-boot-starter-validation' as a mandatory dep
Fixes #638
2016-09-12 17:51:03 -04:00
Ilayaperumal Gopinathan
8ff9df04d4 Pass aggregator parent sources/args appropriately
- The aggregator builder parent sources and cmdline args can be passed via
   - AggregateApplicationBuilder constructor
   - AggregateApplicationBuilder parent() builder method
and, the cmd line args can also be passed via
   - AggregateApplicationBuilder run() method

This PR supports passing all these options. The implementation sets `parentSources` and `parentArgs` by collecting the values from all the above options and use them when creating the parent context.

 - Add test case to verify these scenarios

This resolves #626

Make sure to handle self-contained apps parentContext

 - Always create parent context with the aggregatorParentConfiguration
2016-09-12 09:34:45 -04:00
bamboo
2537a4df8c [artifactory-release] Next development version 2016-09-07 04:12:36 +00:00
bamboo
ef8d3fde03 [artifactory-release] Release version 1.1.0.RC1 2016-09-07 04:12:36 +00:00
Marius Bogoevici
5583c6f8fc Reinstate no-arg constructor for AggregateApplicationBuilder
Fixes #636
2016-09-01 10:29:48 -04:00
Marius Bogoevici
d018cafee4 Subscribers to channel-wrapping Flux instances should broadcast
Fixes #640
2016-08-31 17:25:11 -04:00
bamboo
1b12f7d856 [artifactory-release] Next development version 2016-08-25 20:17:52 +00:00
bamboo
7b71e07c3a [artifactory-release] Release version 1.1.0.M1 2016-08-25 20:17:52 +00:00
Marius Bogoevici
512a5d9190 Use spring-cloud-build-tools for checkstyle validation 2016-08-25 15:27:28 -04:00
bamboo
5cd15dc300 [artifactory-release] Next development version 2016-08-25 19:10:15 +00:00
bamboo
749191ce20 [artifactory-release] Release version 1.1.0.M1 2016-08-25 19:10:15 +00:00
Marius Bogoevici
63c515417d Update README 2016-08-25 14:45:23 -04:00
Marius Bogoevici
785a0bcf1d Remove unused dependencies of spring-cloud-stream-test-support-internal 2016-08-25 14:22:35 -04:00
Marius Bogoevici
1b62be0217 Override scheduler implementations for Reactor 3.0.0
Workaround for https://github.com/reactor/reactor-core/issues/159
2016-08-25 12:13:09 -04:00
Ilayaperumal Gopinathan
ebc508ee61 Do not start application context automatically
- This will avoid other lifecycle beans inside the application context starting when
binding lifecycle beans are started.

Resolves #525

Address review comments
2016-08-24 17:39:33 -04:00
Marius Bogoevici
0756b998bd Restore backwards compatibility with applications using input.contentType
Fixes #633

Fixing checkstyle errors
2016-08-24 15:13:56 -04:00
Marius Bogoevici
d2800efd1d Update Spring Cloud Build to 1.2.0.RELEASE 2016-08-24 09:50:25 -04:00
Marius Bogoevici
c90bea99ae Rename 'spring-cloud-stream-docs' to 'spring-cloud-stream-core-docs 2016-08-22 23:55:17 -04:00
Marius Bogoevici
0eae62f113 Add concrete example of using RabbitMQ 2016-08-22 17:00:07 -04:00
Soby Chacko
247f49350e Extract RabbitMQ and Kafka binder documentation
Fixes #629
2016-08-22 16:56:27 -04:00
Marius Bogoevici
bac8877a52 Correct example in the documentation
Fixes #586
2016-08-18 16:07:51 -04:00
Marius Bogoevici
d43f1d42fc Add Javadoc 2016-08-18 12:45:35 -04:00
Marius Bogoevici
c194ae720f Refactor AbstractMessageChannelBinder
- allow the use of the destination reference returned by
`createProducerDestinationIfNecessary` when invoking `createProducerMessageHandler`
2016-08-18 12:26:16 -04:00
Marius Bogoevici
ac443b56bc Move spring-cloud-stream-dependencies to spring-cloud-stream-starters
Fixes #621
2016-08-17 19:42:16 -04:00
Marius Bogoevici
a9dda09d57 Set an explicit context class for the binders
Since this is an internal construct, we can safely ignore
the application settings.
2016-08-17 16:07:15 -04:00
Marius Bogoevici
d76e49b795 Add spring-cloud-stream-tools module
Fixes #618

- Store checkstyle rules in spring-cloud-stream-tools module
2016-08-17 13:07:37 -04:00
Dave Syer
12a34b7bb8 Change repo URLs to https 2016-08-17 17:31:27 +01:00
David Turanski
d175e68093 Fix copy-paste-o 2016-08-16 16:55:40 -04:00
Ilayaperumal Gopinathan
5c510db012 Aggregate application doesn't need binder in its classpath
- BinderTypeRegistry will have empty binder types for aggregate applications
  - Check if `SharedChannelRegistry` bean is in the context, then proceed with no binder type

This resolves #576

Support self contained aggregator app without binder dependency

 - Check if the aggregator application is self contained (with both source and sink applications exist) and if so, avoid having the check to have binder in classpath at BinderFactoryConfiguration
 - Given the aggregator parent context has binder configuration classes via `@EnableBinding`, enable all the auto configuration classes(excluding the binding configuration classes) as a parent for aggregator builder. This will have the aggregator parent to determine if the aggregator app is `selfContained` and set the parent context once all the app configurers are set
 - Add tests
 - Remove unused aggregator application methods
2016-08-11 16:29:46 -04:00