Commit Graph

66 Commits

Author SHA1 Message Date
Dave Syer
dafa0773b5 Change streams->stream 2015-07-15 08:25:44 +01:00
Ilayaperumal Gopinathan
09c0cf5573 Remove xd-runner 2015-07-13 20:02:34 -07:00
David Turanski
5377eaf258 XD-3242 created spring-cloud-streams-codec
Port MessageBus code from XD (XD-3244)
Fix Deprecated API Usage; Fix Imports (GH-9)
Change poms to compile using JDK7
Move transport specific test classes into binding-<transport> projects
2015-07-13 18:36:59 -04:00
Ilayaperumal Gopinathan
cb75353aeb Add tap sample and remove xd-samples 2015-07-10 16:27:02 -04:00
Marius Bogoevici
a68321e8d5 Identify bindings with annotations, not names
Refactor support for channel beans

* create utility methods for registering input/output channel beans
* use utility methods within tests

Remove source-xml and rely on the @Input/@Output model entirely
2015-07-10 16:18:24 -04:00
Marius Bogoevici
23e4cbc7ac Add support for @EnableModule, @Input and @Output
* enable the component model based on @EnableModule with existing functionality
* any field annotated with Input/Output will trigger the creation and injection of a channel
* update examples and tests
* update README
2015-07-10 13:56:30 -04:00
Marius Bogoevici
2fa5724cee Set spring-cloud-streams-parent as parent for docs 2015-07-10 07:47:09 -04:00
Dave Syer
76ba8c8f5d Add descriptions of samples to README 2015-07-10 09:35:25 +01:00
Dave Syer
0ba24af395 Re-instate search=CURRENT for config properties
In order to run a module as a child context (namespaceing the channels)
you need to have a separate ChannelBindingProperties per context,
so the condition has to have search=CURRENT. For an XD module this
was a problem because the ModuleProperties (a subclass) is needed and that
has to be added in bootstrap (i.e. in the parent context). Fixed by
registering the ModuleProperties as a singleton in the child context.
2015-07-10 08:44:58 +01:00
Dave Syer
99db6d5177 Add redis to travis build 2015-07-10 08:16:42 +01:00
Dave Syer
e5e5551e92 Remove lattice from sample 2015-07-10 08:14:46 +01:00
Dave Syer
35fd979fc6 Move lattice dependency to profile 2015-07-10 07:43:36 +01:00
Dave Syer
4d53ca9dc4 Add travis build 2015-07-10 07:08:11 +01:00
Dave Syer
1823f32569 Add docs and travis config 2015-07-10 07:08:11 +01:00
Ilayaperumal Gopinathan
e3b3bd82fc Rename vanilla-samples
- Change the name to spring-cloud-streams-samples which is already used in pom.xml
2015-07-09 19:05:02 -04:00
Ilayaperumal Gopinathan
e4cc9e5222 Fix source configuration in the sample 2015-07-09 18:52:29 -04:00
Ilayaperumal Gopinathan
a1ca7e8963 Remove SearchStrategy.CURRENT
This was set on the ChannelBindingProperties bean. However, since the ModuleProperties
(which is of type ChannelBindingProperties) might have been initialized by the initializer,
the search strategy for the conditional bean needs to look at the hierarchy.

Added a TODO comment indicating this can be set to CURRENT once the initializer is removed.
2015-07-09 18:11:26 -04:00
Dave Syer
6e33369318 Add aggregate builder and sample applications
No need to specify channel names (just spring.cloud.streams.name). Example
app:

@SpringBootApplication
@EnableChannelBinding
public class ExtendedApplication implements AggregateConfigurer {

	@Override
	public void configure(AggregateBuilder builder) {
		builder
		.from(TimeSource.class).as("source")
		.via(LoggingTransformer.class)
		.via(LoggingTransformer.class).profiles("other")
		.to(LogSink.class);
	}
}

Fixes gh-2
2015-07-09 17:42:12 +01:00
David Turanski
0c82a37360 XD-3242 created spring-cloud-streams-codec
Fixes gh-3
2015-07-09 17:39:53 +01:00
Dave Syer
e6962c514f Add vanilla-samples
The aim is that these will converge over time with the XD samples
2015-07-09 14:04:17 +01:00
Dave Syer
671b57bdc0 Add scm tag to parent pom 2015-07-09 13:46:00 +01:00
Dave Syer
926d6be531 Add parent pom so deployment works OOTB 2015-07-09 13:44:11 +01:00
Dave Syer
fc2397b11d Check simple XD samples are working 2015-07-09 10:01:07 +01:00
Dave Syer
531de2d41e Tidy up readme 2015-07-09 09:40:44 +01:00
Dave Syer
f858c52103 More Bus->Streams name updates 2015-07-09 09:02:32 +01:00
David Turanski
3218c39d47 removed spring-xd-dirt dependencies 2015-07-08 16:00:44 -04:00
Ilayaperumal Gopinathan
498d9f5c64 Merge change from spring-bus 2015-07-08 18:15:37 +01:00
Dave Syer
2096a33d8a Split out XD specific bits into spring-xd-runner 2015-07-08 17:58:33 +01:00
Dave Syer
f6b079f62c Remove discovery fetaures 2015-07-08 17:08:07 +01:00
Dave Syer
39d7e244b9 Change package names 2015-07-08 17:05:33 +01:00
Dave Syer
997356cbe5 Switch to spring-cloud-streams naming 2015-07-08 17:02:44 +01:00
Ilayaperumal Gopinathan
71e53321dc DefaultOptions resolver does not create a new CL
- This will make sure the options metadata classes are loaded from the jars provided in the current classloader instead of a new ParentLastURLClassLoader created in XD.
2015-06-28 12:07:18 -04:00
Glenn Renfro
6ab7c566ad Readme.md now contains build directions 2015-06-28 11:06:43 -04:00
Dave Syer
38a744e915 Remove scala dependency 2015-06-17 16:21:14 +01:00
Dave Syer
f68c4de6f6 Tick off rebind channels 2015-06-12 17:15:26 +01:00
Mark Fisher
71d38c46ec renamed Up/Downstream annotations to In/Output 2015-06-11 08:40:18 -04:00
Mark Fisher
444c3822e4 renamed channel "specs" to channel "bindings" 2015-06-11 08:21:26 -04:00
Mark Fisher
b4b8d7f748 lattice cloud connector for source/sink samples 2015-06-09 09:19:57 -04:00
Ilayaperumal Gopinathan
e89bd9e214 Handle null values for moduleDefaults
- If the moduleDefaults have `null` values then skip.
Otherwise, the `EnvironmentDecryptApplicationInitializer` breaks
2015-06-08 21:56:02 -04:00
Dave Syer
c3ae17eb12 Detect changes in service registry and rebind channels if possible 2015-06-07 12:12:12 +01:00
Dave Syer
19e5bf04bc Tick off discovery 2015-06-05 17:15:42 +01:00
Dave Syer
cee7917c49 Make discovery work for channels
Here's how it works. User adds a bean of type ChannelLocator
qualified as @InputChannel (or @OutputChannel) and it gets
used instead of the default. The discovery version needs a
service id. What it does is invert the naming convention in
channel binding - "input" locally requires "output" remotely,
"input.topic:foo" requires "output.topic:foo" remotely etc.
2015-06-05 16:58:45 +01:00
Dave Syer
538083b656 Add extra abstraction for looking up channel names
ChannelLocator translates local (bean) names to bus names. There's a
local (Default*) implementation and one based on service discovery.
2015-06-04 14:46:25 +01:00
Mark Fisher
8c8fcb7597 added channel-level partitioning props to roadmap 2015-06-04 09:39:45 -04:00
Mark Fisher
534ba30335 resource path change to enable java -jar launching 2015-06-04 09:34:00 -04:00
Mark Fisher
a172651fc1 fix start-class in sample poms 2015-06-04 09:31:58 -04:00
Mark Fisher
0153c27e8a partitioning example
added commented-out properties with an explanation in the
bootstrap.yml files for the source and sink sample apps
2015-06-04 09:24:33 -04:00
Dave Syer
3664d02e8d Lazily initialize the MessageBus in BeanPostProcessor
Otherwise bad things happen when the MessageBus is not decorated
by other BPPs (especially the @EnableIntegration one).
2015-06-04 09:01:55 +01:00
Mark Fisher
a239294d9c added inputType/outputType properties to roadmap 2015-06-02 10:41:27 -04:00
Dave Syer
17df347b1b Add localName property to channel specs (read only)
/channels/taps responds to the local name as well as the "channel"
name.

Also includes a change to allow the default channel name to be
output_topic: or input_topic: (for pubsub but no particular name).

And also adds autoStartup to module properties.
2015-06-02 13:27:49 +01:00