Commit Graph

394 Commits

Author SHA1 Message Date
Dave Syer
9b4c12b517 Fix ordering for rabbit autoconfig 2015-08-29 10:44:03 +01:00
Ilayaperumal Gopinathan
b60ccd1427 Re-add bean conditions for cloud config
- Re-add `@ConditionalOnMissingBean` to connection factory beans in cloud configurations
 - This is needed at least for CF case where auto-reconfiguration sets up connection factory beans
2015-08-28 12:33:09 -07:00
Mark Fisher
6a5137a0c3 add @ConfigurationPropertiesBinding to Converter
This is required due to the changes in boot related to this issue:
https://github.com/spring-projects/spring-boot/issues/2669
2015-08-28 10:55:23 -04:00
Mark Fisher
6a1787ffe3 polishing 2015-08-27 15:57:07 -04:00
Eric Bottard
74d85cd9d2 Use the full Environment for module args
Rename to ModuleLaunchRequest

Add documentation for the format

Move request construction

Document launcher order

Fix empty args case

Update docs
2015-08-27 15:43:42 -04:00
Ilayaperumal Gopinathan
cf470b6d6f Make binding key case insensitive
- Use `TreeMap` for channel bindings and set case insensitive comparator for the tree map.
   - This way binding key (typically channel name) can be looked up case insensitively
2015-08-27 08:16:41 -07:00
Ilayaperumal Gopinathan
a4aede7589 Fix doc typo 2015-08-26 18:33:02 -07:00
Ilayaperumal Gopinathan
0a927b6711 Update documentation
- update steps to run the `s-c-s-module-launcher` on standalone, docker and lattice
 - update recent changes into readme
 - Fix docker compose to use the common binding name so that `time | log` works

Remove explicit cloud profile for lattice run

Remove tap reference

Remove explicit server.port for docker-compose

Update port mapping for docker run
2015-08-26 14:25:01 -04:00
Ilayaperumal Gopinathan
7663372062 ModuleRunner enhancements
- Move the launcher property `modules` to `ModuleLauncherProperties`
 - This will make the `ModuleRunner` to be `Component` bean only; Also, it only needs to enable the configuration properties of `ModuleLauncherProperties`

Separate module resolver/launcher properties

Add validator dependency to module launcher
2015-08-26 11:26:57 +02:00
Marius Bogoevici
83123c3b97 Pre-register default bindings for channels
- This allows resolution of any binding properties specified with `_` instead of `.`
- remove cast and check for ConfigurableEnvironment
- remove the duplicate defaulting channel binding code

Remove unused import
2015-08-25 16:00:33 -07:00
Mark Fisher
6de7f7cb33 avoid dots in producer property keys 2015-08-25 13:57:59 -04:00
David Turanski
31168b6f5b minor changes to @Ignored test 2015-08-24 12:29:16 -04:00
Eric Bottard
1ce40497c9 Fix copyrights 2015-08-23 15:19:09 +02:00
Ilayaperumal Gopinathan
1e8989a45a Remove cloud connector dependencies from S-C-S
- Remove lattice and cf connector dependencies from core S-C-S and binder
  - The idea is to have these dependencies defined in s-c-s-modules so that they
are specified in one place and make the module run on local/cloud environment in a
self contained manner
  - Keep the `spring-cloud-core` dependency to binder so that the Cloud configuration
is used to get the appropriate services for the redis/rabbit binder
2015-08-22 12:40:38 -04:00
Ilayaperumal Gopinathan
b3bc9c9673 Fix RedisService cloud configuration
- Remove `@ConditionalOnMissingBean` on RedisConnectionFactory
2015-08-22 00:17:24 -07:00
Marius Bogoevici
d243036db7 Fix extra apostrophe 2015-08-21 18:26:49 -04:00
Marius Bogoevici
397ef6f557 Simplify Travis setup and disable snapshot publishing
- remove conditionals for the PR process
- stop Travis from publishing snapshots
2015-08-21 17:59:33 -04:00
Ilayaperumal Gopinathan
4109949a92 Use the required autoconfiguration in test
- Instead of using `@EnableAutoConfiguration` use `PropertyPlaceholderAutoConfiguration` which is all required for the property resolution
2015-08-21 13:15:47 -07:00
Mark Fisher
bd0b3f294f polishing 2015-08-21 11:31:45 -04:00
Marius Bogoevici
08f898cb22 Use application.name in default binding name
Enable autoconfiguration so property placeholders are handled
2015-08-21 11:23:07 -04:00
Ilayaperumal Gopinathan
56469353b3 Autoconfigure rabbitCloud before rabbit auto-config
- This ordering is required to avoid having 2 beans created for rabbit `ConnectionFactory`
2015-08-21 07:59:23 -07:00
Marius Bogoevici
2e4fd84f93 Add Channel Interceptor Support tests
Add binding tests for Source, Sink, Processor and arbitrary interfaces
2015-08-21 11:30:19 +02:00
Ilayaperumal Gopinathan
b0beec8548 Annotate channelbinding properties instead of autoconfig
- Autowire `ChannelBindingProperties` into `ChannelBindingConfiguration` via
`@EnableConfigurationProperties` support
  - This change removes explicit `@AutoConfiguration` for ChannelBindingProperties
2015-08-21 11:06:27 +02:00
Ilayaperumal Gopinathan
44bf181ff0 AutoConfigure redisCloud before redis auto-config 2015-08-20 17:48:49 -07:00
Ilayaperumal Gopinathan
55591889e1 Add auto-config for Local binder
- Make `local` binder compile dependency as optional
 - Add `local` binder auto configuration
    - This imports local binder properties and binder
 - Add `spring.factories` to enable auto configuration when this archive
is on the classpath
2015-08-20 15:08:17 +02:00
Marius Bogoevici
1c57a85a52 Allow method parameters as target for @Input and @Output
So that they can qualify @Bean method arguments
2015-08-19 21:42:12 -04:00
Eric Bottard
2ab2d5c1a9 Add a converter String->Expression 2015-08-19 16:29:36 -04:00
Mark Fisher
a20d151217 default matcher timeout is now 5 seconds 2015-08-19 16:23:50 -04:00
Eric Bottard
645b49129d Make immediate receive the default 2015-08-19 16:23:50 -04:00
Ilayaperumal Gopinathan
06762afed2 TimeSource uses default autoStartup=true
- Since the ChannelBindingAdapter is `SmartLifecycle` bean and it starts before
the message producing time source adapter we can remove explicit `autoStartup=false` for TimeSource sample
2015-08-19 13:16:33 -07:00
Ilayaperumal Gopinathan
a335704833 Remove ChannelBindingAdapterRunner
- Since `ChannelBindingAdapter` implements `SmartLifecycle`, it is expected to start with the highest precedence when the lifecycle beans are started.
 - Remove `autoStartup` from `ChannelBindingProperties`
   - This property was used by the CBARunner to start the CBA if autoStartup is true
     - Since all the lifecycle beans (inbound/outbound channel adapters) are started with appropriate phase and autoStartup flag the ChannelBindingProperties's autoStartup isn't needed.
2015-08-19 11:21:32 -07:00
Ilayaperumal Gopinathan
e5ffdc8334 Set outputchannel after CBA stop() in tests 2015-08-19 08:43:40 -07:00
Ilayaperumal Gopinathan
d688dc76bd Add SmartLifecycle to ChannelBindingAdapter
- Also set Integer.MIN_VALUE as the phase value for CBA that enables this lifecycle bean to start
before any other message producing lifecycle beans
2015-08-18 17:07:51 -07:00
Marius Bogoevici
108ac82df3 Also honour ApplicationContextAware 2015-08-18 17:07:28 -04:00
Marius Bogoevici
79c13a8ab2 DirectChannelFactoryBean should set the bean name and bean factory on created instance 2015-08-18 16:49:29 -04:00
Ilayaperumal Gopinathan
3dac86a18a Remove throws InterruptedException from sample main 2015-08-17 15:21:46 -07:00
David Turanski
f39b190492 remove .idea/copyright 2015-08-17 16:12:38 -04:00
Eric Bottard
e2497efa39 XD-3381: Provide test support for modules 2015-08-17 13:33:15 -04:00
Dave Syer
6d01a2ef79 Add getter to array property for binding
@ConfigurationProperties cannot bind to an array without a getter
2015-08-16 08:17:29 +01:00
Eric Bottard
b8f23770f7 Check in copyright settings 2015-08-15 13:21:03 -04:00
Marius Bogoevici
70de593da7 Enable 'spring' profile by default 2015-08-14 15:55:00 -04:00
Marius Bogoevici
9b0ff80a52 Remove @MessageEndpoint from @EnableModule 2015-08-14 15:34:42 -04:00
Marius Bogoevici
76eb34256e Set autoStartup to false on the TimeSource
Prevents the endpoint from starting before it's bound, thus throwing Dispatcher errors
2015-08-14 15:24:03 -04:00
Dave Syer
690f69420f Fix .travis.yml to use wrapper 2015-08-14 10:14:27 +01:00
Dave Syer
bf10975967 Move repository declarations into profile 2015-08-14 10:13:35 +01:00
Dave Syer
64aaf24f25 Fix .travis.yml 2015-08-14 10:12:16 +01:00
Dave Syer
cc1c76f852 Add missing Maven wrapper 2015-08-14 10:08:25 +01:00
Marius Bogoevici
54fe8021a3 DirectChannelFactoryBean now advertises DirectChannel as bean type 2015-08-13 15:24:03 -04:00
Ilayaperumal Gopinathan
4ab01b6e7b Support comma separated remote repos
- Change `remoteRepository` option to `remoteRepositories` that accepts comma separated string values.
 - AetherModuleResolver would expect set of remote repositories and create `RemoteRepository` list
for the given set.

Use String[] for remoteRepositories

 - This will let spring boot's ConfigurationProperties handle the properties
and use the Map<String,String> for remoteProperties in AetherModuleResolver
 - Generate ID for the map
2015-08-13 14:20:24 -04:00
Dave Syer
15e3c6066f Re-instate lazy lookup for Binder in DestinationResolver
It's important not to depend on something heavyweight like a Binder
in a BeanPostProcessor. The usual trick (as implemented here) is
to do a lazy lookup of the thing that is eventually injected in the
post processes beans.

Fixes gh-82
2015-08-13 13:34:05 -04:00