INT-1219 migrated Loanshark sample to 'samples' package hierarchy

This commit is contained in:
Oleg Zhurakousky
2010-07-13 02:50:18 +00:00
parent 959299ece4
commit d7d30e6c57
17 changed files with 29 additions and 28 deletions

View File

@@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.springframework.integration.loanbroker.loanshark.biz;
package com.springframework.integration.samples.loanbroker.loanshark.biz;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.springframework.integration.loanbroker.loanshark.domain.LoanShark;
import com.springframework.integration.samples.loanbroker.loanshark.domain.LoanShark;
/**
* @author Gary Russell

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.springframework.integration.loanbroker.loanshark.biz;
package com.springframework.integration.samples.loanbroker.loanshark.biz;
/**
* @author Gary Russell

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.springframework.integration.loanbroker.loanshark.biz;
package com.springframework.integration.samples.loanbroker.loanshark.biz;
/**
* @author Gary Russell

View File

@@ -1,4 +1,4 @@
package com.springframework.integration.loanbroker.loanshark.domain;
package com.springframework.integration.samples.loanbroker.loanshark.domain;
import javax.persistence.Entity;
import org.springframework.roo.addon.entity.RooEntity;

View File

@@ -1,4 +1,4 @@
package com.springframework.integration.loanbroker.loanshark.domain;
package com.springframework.integration.samples.loanbroker.loanshark.domain;
import org.springframework.beans.factory.annotation.Configurable;

View File

@@ -1,6 +1,7 @@
package com.springframework.integration.loanbroker.loanshark.domain;
package com.springframework.integration.samples.loanbroker.loanshark.domain;
import com.springframework.integration.samples.loanbroker.loanshark.domain.LoanShark;
import com.springframework.integration.loanbroker.loanshark.domain.LoanShark;
import java.lang.Integer;
import java.lang.Long;
import java.util.List;

View File

@@ -1,4 +1,4 @@
package com.springframework.integration.loanbroker.loanshark.domain;
package com.springframework.integration.samples.loanbroker.loanshark.domain;
import java.lang.String;
import java.lang.SuppressWarnings;

View File

@@ -1,4 +1,4 @@
package com.springframework.integration.loanbroker.loanshark.domain;
package com.springframework.integration.samples.loanbroker.loanshark.domain;
import java.lang.Double;
import java.lang.Long;

View File

@@ -1,4 +1,4 @@
package com.springframework.integration.loanbroker.loanshark.domain;
package com.springframework.integration.samples.loanbroker.loanshark.domain;
import java.lang.String;

View File

@@ -1,7 +1,9 @@
package com.springframework.integration.loanbroker.loanshark.web;
package com.springframework.integration.samples.loanbroker.loanshark.web;
import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold;
import com.springframework.integration.loanbroker.loanshark.domain.LoanShark;
import com.springframework.integration.samples.loanbroker.loanshark.domain.LoanShark;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;

View File

@@ -1,6 +1,7 @@
package com.springframework.integration.loanbroker.loanshark.web;
package com.springframework.integration.samples.loanbroker.loanshark.web;
import com.springframework.integration.samples.loanbroker.loanshark.domain.LoanShark;
import com.springframework.integration.loanbroker.loanshark.domain.LoanShark;
import java.lang.Long;
import java.lang.String;
import javax.validation.Valid;

View File

@@ -46,7 +46,7 @@
The most commonly used annotation is @Autowired, which instructs Spring to
dependency inject an object into your class.
-->
<context:component-scan base-package="com.springframework.integration.loanbroker.loanshark">
<context:component-scan base-package="com.springframework.integration.samples.loanbroker.loanshark">
<context:exclude-filter expression=".*_Roo_.*" type="regex"/>
<context:exclude-filter expression="org.springframework.stereotype.Controller" type="annotation"/>
</context:component-scan>

View File

@@ -24,7 +24,7 @@
input-channel="transformedChannel"
ref="accumulator" />
<bean id="accumulator" class="com.springframework.integration.loanbroker.loanshark.biz.Accumulator" />
<bean id="transformer" class="com.springframework.integration.loanbroker.loanshark.biz.SharkTransformer" />
<bean id="accumulator" class="com.springframework.integration.loanbroker.samples.loanshark.biz.Accumulator" />
<bean id="transformer" class="com.springframework.integration.loanbroker.samples.loanshark.biz.SharkTransformer" />
</beans>

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.springframework.integration.loanbroker.loanshark.biz;
package com.springframework.integration.samples.loanbroker.loanshark.biz;
import static junit.framework.Assert.assertEquals;
@@ -25,7 +25,9 @@ import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.transaction.annotation.Transactional;
import com.springframework.integration.loanbroker.loanshark.domain.LoanShark;
import com.springframework.integration.samples.loanbroker.loanshark.biz.Accumulator;
import com.springframework.integration.samples.loanbroker.loanshark.biz.SharkQuote;
import com.springframework.integration.samples.loanbroker.loanshark.domain.LoanShark;
/**