INT-1224 migrated LB sample to 'samples' package hierarchy

This commit is contained in:
Oleg Zhurakousky
2010-07-13 02:13:27 +00:00
parent 7ec2138ae8
commit 550c93c955
14 changed files with 35 additions and 35 deletions

View File

@@ -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.

View File

@@ -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

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.integration.loanbroker.domain;
package org.springframework.integration.samples.loanbroker.domain;
/**
* @author Oleg Zhurakousky

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.integration.loanbroker.domain;
package org.springframework.integration.samples.loanbroker.domain;
/**
* @author Oleg Zhurakousky

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.integration.loanbroker.domain;
package org.springframework.integration.samples.loanbroker.domain;
/**
* @author Oleg Zhurakousky

View File

@@ -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;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.integration.loanbroker.domain;
package org.springframework.integration.samples.loanbroker.domain;
/**
* @author Oleg Zhurakousky

View File

@@ -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

View File

@@ -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

View File

@@ -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>

View File

@@ -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"/>

View File

@@ -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

View File

@@ -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

View File

@@ -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">