Skip to content

Commit

Permalink
CAMEL-10226: Fixed CS.
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Aug 10, 2016
1 parent 1cc71fc commit 1c09c73
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ public JmsConfiguration getConfiguration() {
// If we are being configured with spring...
if (applicationContext != null) {

if( getAllowAutoWiredConnectionFactory() ) {
if (isAllowAutoWiredConnectionFactory()) {
Map<String, ConnectionFactory> beansOfTypeConnectionFactory = applicationContext.getBeansOfType(ConnectionFactory.class);
if (!beansOfTypeConnectionFactory.isEmpty()) {
ConnectionFactory cf = beansOfTypeConnectionFactory.values().iterator().next();
configuration.setConnectionFactory(cf);
}
}

if( getAllowAutoWiredDestinationResolver() ) {
if (isAllowAutoWiredDestinationResolver()) {
Map<String, DestinationResolver> beansOfTypeDestinationResolver = applicationContext.getBeansOfType(DestinationResolver.class);
if (!beansOfTypeDestinationResolver.isEmpty()) {
DestinationResolver destinationResolver = beansOfTypeDestinationResolver.values().iterator().next();
Expand All @@ -174,9 +174,9 @@ public JmsConfiguration getConfiguration() {
* setup to use an auto-wired the connection factory that's found in the spring
* application context.
*
* @return true
* @return true by default
*/
public boolean getAllowAutoWiredConnectionFactory() {
public boolean isAllowAutoWiredConnectionFactory() {
return true;
}

Expand All @@ -185,9 +185,9 @@ public boolean getAllowAutoWiredConnectionFactory() {
* setup to use an auto-wired the destination resolved that's found in the spring
* application context.
*
* @return true
* @return true by default
*/
public boolean getAllowAutoWiredDestinationResolver() {
public boolean isAllowAutoWiredDestinationResolver() {
return true;
}

Expand Down

0 comments on commit 1c09c73

Please sign in to comment.