INT-1224 migrated LB sample to 'samples' package hierarchy
This commit is contained in:
@@ -14,12 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.integration.loanbroker;
|
||||
package org.springframework.integration.samples.loanbroker;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.integration.loanbroker.domain.LoanQuote;
|
||||
import org.springframework.integration.loanbroker.domain.LoanRequest;
|
||||
import org.springframework.integration.samples.loanbroker.domain.LoanQuote;
|
||||
import org.springframework.integration.samples.loanbroker.domain.LoanRequest;
|
||||
|
||||
/**
|
||||
* POJI Gateway that connects method invocations to the request-channel.
|
||||
@@ -14,20 +14,20 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.integration.loanbroker;
|
||||
package org.springframework.integration.samples.loanbroker;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.integration.core.Message;
|
||||
import org.springframework.integration.loanbroker.domain.LoanQuote;
|
||||
import org.springframework.integration.samples.loanbroker.domain.LoanQuote;
|
||||
|
||||
/**
|
||||
* Aggregates {@link LoanQuote}s based on the value of the 'RESPONSE_TYPE' message header.
|
||||
* When only the <i>best</i> quote is desired, the 'RESPONSE_TYPE' header should have a value
|
||||
* of 'BEST'. In this example, that value is set by the 'gateway' when the
|
||||
* {@link LoanBrokerGateway#getBestLoanQuote(org.springframework.integration.loanbroker.domain.LoanRequest)}
|
||||
* {@link LoanBrokerGateway#getBestLoanQuote(org.springframework.integration.samples.loanbroker.domain.LoanRequest)}
|
||||
* method is invoked by the client.
|
||||
*
|
||||
* @author Oleg Zhurakousky
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.integration.loanbroker.domain;
|
||||
package org.springframework.integration.samples.loanbroker.domain;
|
||||
|
||||
/**
|
||||
* @author Oleg Zhurakousky
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.integration.loanbroker.domain;
|
||||
package org.springframework.integration.samples.loanbroker.domain;
|
||||
|
||||
/**
|
||||
* @author Oleg Zhurakousky
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.integration.loanbroker.domain;
|
||||
package org.springframework.integration.samples.loanbroker.domain;
|
||||
|
||||
/**
|
||||
* @author Oleg Zhurakousky
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.integration.loanbroker.domain;
|
||||
package org.springframework.integration.samples.loanbroker.domain;
|
||||
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.Date;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.integration.loanbroker.domain;
|
||||
package org.springframework.integration.samples.loanbroker.domain;
|
||||
|
||||
/**
|
||||
* @author Oleg Zhurakousky
|
||||
@@ -14,13 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.integration.loanbroker.stubs;
|
||||
package org.springframework.integration.samples.loanbroker.stubs;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.Random;
|
||||
|
||||
import org.springframework.integration.loanbroker.domain.LoanQuote;
|
||||
import org.springframework.integration.loanbroker.domain.LoanRequest;
|
||||
import org.springframework.integration.samples.loanbroker.domain.LoanQuote;
|
||||
import org.springframework.integration.samples.loanbroker.domain.LoanRequest;
|
||||
|
||||
/**
|
||||
* @author Oleg Zhurakousky
|
||||
@@ -14,14 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.integration.loanbroker.stubs;
|
||||
package org.springframework.integration.samples.loanbroker.stubs;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import org.springframework.integration.loanbroker.domain.CreditScore;
|
||||
import org.springframework.integration.loanbroker.domain.LoanRequest;
|
||||
import org.springframework.integration.samples.loanbroker.domain.CreditScore;
|
||||
import org.springframework.integration.samples.loanbroker.domain.LoanRequest;
|
||||
|
||||
/**
|
||||
* @author Oleg Zhurakousky
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<gateway id="loanBrokerGateway"
|
||||
default-request-channel="loanBrokerPreProcessingChannel"
|
||||
service-interface="org.springframework.integration.loanbroker.LoanBrokerGateway">
|
||||
service-interface="org.springframework.integration.samples.loanbroker.LoanBrokerGateway">
|
||||
<method name="getBestLoanQuote">
|
||||
<header name="RESPONSE_TYPE" value="BEST"/>
|
||||
</method>
|
||||
@@ -31,7 +31,7 @@
|
||||
<!-- Messages are sent to the banks via bank channels and will be received and processed by an aggregator -->
|
||||
|
||||
<aggregator input-channel="quotesAggregationChannel" method="aggregateQuotes">
|
||||
<beans:bean class="org.springframework.integration.loanbroker.LoanQuoteAggregator"/>
|
||||
<beans:bean class="org.springframework.integration.samples.loanbroker.LoanQuoteAggregator"/>
|
||||
</aggregator>
|
||||
|
||||
</beans:beans>
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd">
|
||||
|
||||
<bean id="creditBureau" class="org.springframework.integration.loanbroker.stubs.CreditBureauStub" />
|
||||
<bean id="creditBureau" class="org.springframework.integration.samples.loanbroker.stubs.CreditBureauStub" />
|
||||
|
||||
<bean id="bankStub" class="org.springframework.integration.loanbroker.stubs.BankStub"/>
|
||||
<bean id="bankStub" class="org.springframework.integration.samples.loanbroker.stubs.BankStub"/>
|
||||
|
||||
<!-- Bank Endpoints (to be rewired to remoting adapters) -->
|
||||
<int:service-activator input-channel="abcBankChannel" output-channel="quotesAggregationChannel" ref="bankStub"/>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.integration.loanbroker.demo;
|
||||
package org.springframework.integration.samples.loanbroker.demo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -23,10 +23,10 @@ import org.junit.Test;
|
||||
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
import org.springframework.integration.loanbroker.LoanBrokerGateway;
|
||||
import org.springframework.integration.loanbroker.domain.Customer;
|
||||
import org.springframework.integration.loanbroker.domain.LoanQuote;
|
||||
import org.springframework.integration.loanbroker.domain.LoanRequest;
|
||||
import org.springframework.integration.samples.loanbroker.LoanBrokerGateway;
|
||||
import org.springframework.integration.samples.loanbroker.domain.Customer;
|
||||
import org.springframework.integration.samples.loanbroker.domain.LoanQuote;
|
||||
import org.springframework.integration.samples.loanbroker.domain.LoanRequest;
|
||||
|
||||
/**
|
||||
* @author Oleg Zhurakousky
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.integration.loanbroker.demo;
|
||||
package org.springframework.integration.samples.loanbroker.demo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -23,10 +23,10 @@ import org.junit.Test;
|
||||
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
import org.springframework.integration.loanbroker.LoanBrokerGateway;
|
||||
import org.springframework.integration.loanbroker.domain.Customer;
|
||||
import org.springframework.integration.loanbroker.domain.LoanQuote;
|
||||
import org.springframework.integration.loanbroker.domain.LoanRequest;
|
||||
import org.springframework.integration.samples.loanbroker.LoanBrokerGateway;
|
||||
import org.springframework.integration.samples.loanbroker.domain.Customer;
|
||||
import org.springframework.integration.samples.loanbroker.domain.LoanQuote;
|
||||
import org.springframework.integration.samples.loanbroker.domain.LoanRequest;
|
||||
|
||||
/**
|
||||
* @author Gary Russell
|
||||
@@ -11,12 +11,12 @@
|
||||
</appender>
|
||||
|
||||
<!-- Loggers -->
|
||||
<logger name="org.springframework">
|
||||
<level value="warn" />
|
||||
</logger>
|
||||
<!-- <logger name="org.springframework">-->
|
||||
<!-- <level value="debug" />-->
|
||||
<!-- </logger>-->
|
||||
|
||||
<logger name="org.springframework.integration">
|
||||
<level value="warn" />
|
||||
<level value="info" />
|
||||
</logger>
|
||||
|
||||
<logger name="org.springframework.integration.loanbroker">
|
||||
|
||||
Reference in New Issue
Block a user