Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
7e579c9a
Commit
7e579c9a
authored
Feb 27, 2015
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use method accessor not field
parent
8ac43cca
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
14 deletions
+1
-14
HystrixStreamAutoConfiguration.java
.../netflix/hystrix/amqp/HystrixStreamAutoConfiguration.java
+1
-1
TurbineAmqpAutoConfiguration.java
...ud/netflix/turbine/amqp/TurbineAmqpAutoConfiguration.java
+0
-13
No files found.
spring-cloud-netflix-hystrix-amqp/src/main/java/org/springframework/cloud/netflix/hystrix/amqp/HystrixStreamAutoConfiguration.java
View file @
7e579c9a
...
...
@@ -115,7 +115,7 @@ public class HystrixStreamAutoConfiguration {
* @Override public void configure(HeaderEnricherSpec spec) {
* spec.header("content-type", "application/json", true); } })
*/
.
handle
(
Amqp
.
outboundAdapter
(
this
.
amqpTemplate
).
exchangeName
(
.
handle
(
Amqp
.
outboundAdapter
(
amqpTemplate
()
).
exchangeName
(
HystrixConstants
.
HYSTRIX_STREAM_NAME
)).
get
();
}
...
...
spring-cloud-netflix-turbine-amqp/src/main/java/org/springframework/cloud/netflix/turbine/amqp/TurbineAmqpAutoConfiguration.java
View file @
7e579c9a
...
...
@@ -25,7 +25,6 @@ import org.springframework.amqp.core.BindingBuilder;
import
org.springframework.amqp.core.DirectExchange
;
import
org.springframework.amqp.core.Queue
;
import
org.springframework.amqp.rabbit.connection.ConnectionFactory
;
import
org.springframework.amqp.rabbit.core.RabbitTemplate
;
import
org.springframework.amqp.support.converter.Jackson2JsonMessageConverter
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
...
...
@@ -70,18 +69,6 @@ public class TurbineAmqpAutoConfiguration {
@Autowired
(
required
=
false
)
private
ObjectMapper
objectMapper
;
private
RabbitTemplate
amqpTemplate
;
public
RabbitTemplate
amqpTemplate
()
{
if
(
this
.
amqpTemplate
==
null
)
{
RabbitTemplate
amqpTemplate
=
new
RabbitTemplate
(
connectionFactory
());
Jackson2JsonMessageConverter
converter
=
messageConverter
();
amqpTemplate
.
setMessageConverter
(
converter
);
this
.
amqpTemplate
=
amqpTemplate
;
}
return
this
.
amqpTemplate
;
}
@Bean
public
DirectExchange
hystrixStreamExchange
()
{
DirectExchange
exchange
=
new
DirectExchange
(
HystrixConstants
.
HYSTRIX_STREAM_NAME
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment