Skip to content

Commit

Permalink
Rename samples base package to org.springframework.batch.samples
Browse files Browse the repository at this point in the history
  • Loading branch information
fmbenhassine committed Oct 11, 2023
1 parent da8e92b commit b2a0d03
Show file tree
Hide file tree
Showing 379 changed files with 772 additions and 777 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<excludePackageNames>
org.springframework.batch.sample.*
org.springframework.batch.samples.*
</excludePackageNames>
<overview>${project.basedir}/spring-batch-docs/src/main/javadoc/overview.html</overview>
<detectJavaApiLink>false</detectJavaApiLink>
Expand Down
4 changes: 2 additions & 2 deletions spring-batch-docs/modules/ROOT/pages/processor.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -334,15 +334,15 @@ public SpringValidator validator() {
XML::
+
.XML Configuration
[source, xml]
[source,xml]
----
<bean class="org.springframework.batch.item.validator.ValidatingItemProcessor">
<property name="validator" ref="validator" />
</bean>
<bean id="validator" class="org.springframework.batch.item.validator.SpringValidator">
<property name="validator">
<bean class="org.springframework.batch.sample.domain.trade.internal.validator.TradeValidator"/>
<bean class="org.springframework.batch.samples.domain.trade.internal.validator.TradeValidator"/>
</property>
</bean>
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ The following example shows how to inject an `ItemReader` into a `Step` in XML:
<property name="dataSource" ref="dataSource"/>
<property name="sql" value="select ID, NAME, CREDIT from CUSTOMER"/>
<property name="rowMapper">
<bean class="org.springframework.batch.sample.domain.CustomerCreditRowMapper"/>
<bean class="org.springframework.batch.samples.domain.CustomerCreditRowMapper"/>
</property>
</bean>
----
Expand Down Expand Up @@ -344,7 +344,7 @@ examples:
<property name="dataSource" ref="dataSource"/>
<property name="procedureName" value="sp_customer_credit"/>
<property name="rowMapper">
<bean class="org.springframework.batch.sample.domain.CustomerCreditRowMapper"/>
<bean class="org.springframework.batch.samples.domain.CustomerCreditRowMapper"/>
</property>
</bean>
----
Expand Down Expand Up @@ -394,7 +394,7 @@ XML:
<property name="procedureName" value="sp_customer_credit"/>
<property name="refCursorPosition" value="1"/>
<property name="rowMapper">
<bean class="org.springframework.batch.sample.domain.CustomerCreditRowMapper"/>
<bean class="org.springframework.batch.samples.domain.CustomerCreditRowMapper"/>
</property>
</bean>
----
Expand Down Expand Up @@ -440,7 +440,7 @@ The following example shows property to `true` in XML:
<property name="procedureName" value="sp_customer_credit"/>
<property name="function" value="true"/>
<property name="rowMapper">
<bean class="org.springframework.batch.sample.domain.CustomerCreditRowMapper"/>
<bean class="org.springframework.batch.samples.domain.CustomerCreditRowMapper"/>
</property>
</bean>
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ the following snippet in XML:
</bean>
<bean id="player"
class="org.springframework.batch.sample.domain.Player"
class="org.springframework.batch.samples.domain.Player"
scope="prototype" />
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The following bean definition shows how to prevent state persistence in XML:
<bean id="playerSummarizationSource" class="org.spr...JdbcCursorItemReader">
<property name="dataSource" ref="dataSource" />
<property name="rowMapper">
<bean class="org.springframework.batch.sample.PlayerSummaryMapper" />
<bean class="org.springframework.batch.samples.PlayerSummaryMapper" />
</property>
<property name="saveState" value="false" />
<property name="sql">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ XML::
The following example shows how to describe the alias in XML:
+
.XML Configuration
[source, xml]
[source,xml]
----
<bean id="tradeMarshaller"
class="org.springframework.oxm.xstream.XStreamMarshaller">
<property name="aliases">
<util:map id="aliases">
<entry key="trade"
value="org.springframework.batch.sample.domain.trade.Trade" />
value="org.springframework.batch.samples.domain.trade.Trade" />
<entry key="price" value="java.math.BigDecimal" />
<entry key="isin" value="java.lang.String" />
<entry key="customer" value="java.lang.String" />
Expand Down Expand Up @@ -196,7 +196,7 @@ StaxEventItemReader<Trade> xmlStaxEventItemReader = new StaxEventItemReader<>();
Resource resource = new ByteArrayResource(xmlResource.getBytes());
Map aliases = new HashMap();
aliases.put("trade","org.springframework.batch.sample.domain.trade.Trade");
aliases.put("trade","org.springframework.batch.samples.domain.trade.Trade");
aliases.put("price","java.math.BigDecimal");
aliases.put("customer","java.lang.String");
aliases.put("isin","java.lang.String");
Expand Down Expand Up @@ -313,14 +313,14 @@ The following XML example uses the same marshaller as the one used in the readin
shown earlier in the chapter:
+
.XML Configuration
[source, xml]
[source,xml]
----
<bean id="customerCreditMarshaller"
class="org.springframework.oxm.xstream.XStreamMarshaller">
<property name="aliases">
<util:map id="aliases">
<entry key="customer"
value="org.springframework.batch.sample.domain.trade.Trade" />
value="org.springframework.batch.samples.domain.trade.Trade" />
<entry key="price" value="java.math.BigDecimal" />
<entry key="isin" value="java.lang.String" />
<entry key="customer" value="java.lang.String" />
Expand All @@ -342,7 +342,7 @@ discussed, demonstrating the programmatic setup of the required properties:
FileSystemResource resource = new FileSystemResource("data/outputFile.xml")
Map aliases = new HashMap();
aliases.put("trade","org.springframework.batch.sample.domain.trade.Trade");
aliases.put("trade","org.springframework.batch.samples.domain.trade.Trade");
aliases.put("price","java.math.BigDecimal");
aliases.put("customer","java.lang.String");
aliases.put("isin","java.lang.String");
Expand Down
2 changes: 1 addition & 1 deletion spring-batch-docs/modules/ROOT/pages/step/tasklet.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ The following example shows how to reference the `tasklet` from the `step` in XM
</job>
<beans:bean id="fileDeletingTasklet"
class="org.springframework.batch.sample.tasklet.FileDeletingTasklet">
class="org.springframework.batch.samples.tasklet.FileDeletingTasklet">
<beans:property name="directoryResource">
<beans:bean id="directory"
class="org.springframework.core.io.FileSystemResource">
Expand Down
Loading

0 comments on commit b2a0d03

Please sign in to comment.