Rename some packages with more logical names
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
*/
|
||||
package org.springframework.batch.sample;
|
||||
|
||||
import org.springframework.batch.core.configuration.JobFactory;
|
||||
import org.springframework.batch.core.domain.Job;
|
||||
import org.springframework.batch.core.repository.JobFactory;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
|
||||
@@ -50,7 +50,7 @@ public class ClassPathXmlApplicationContextJobFactory implements JobFactory {
|
||||
* Create a {@link ClassPathXmlApplicationContext} from the path provided
|
||||
* and pull out a bean with the name given during initialization.
|
||||
*
|
||||
* @see org.springframework.batch.core.repository.JobFactory#createJob()
|
||||
* @see org.springframework.batch.core.configuration.JobFactory#createJob()
|
||||
*/
|
||||
public Job createJob() {
|
||||
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] { path }, parent);
|
||||
@@ -62,7 +62,7 @@ public class ClassPathXmlApplicationContextJobFactory implements JobFactory {
|
||||
* usually the name of the job as well, but it needn't be. The important
|
||||
* thing is that the job can be located by this name.
|
||||
*
|
||||
* @see org.springframework.batch.core.repository.JobFactory#getJobName()
|
||||
* @see org.springframework.batch.core.configuration.JobFactory#getJobName()
|
||||
*/
|
||||
public String getJobName() {
|
||||
return beanName;
|
||||
|
||||
@@ -7,8 +7,8 @@ import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.batch.core.configuration.ListableJobRegistry;
|
||||
import org.springframework.batch.core.domain.Job;
|
||||
import org.springframework.batch.core.repository.ListableJobRegistry;
|
||||
import org.springframework.batch.core.repository.NoSuchJobException;
|
||||
import org.springframework.beans.BeanWrapperImpl;
|
||||
import org.springframework.beans.BeansException;
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
*/
|
||||
package org.springframework.batch.sample;
|
||||
|
||||
import org.springframework.batch.core.configuration.JobRegistry;
|
||||
import org.springframework.batch.core.domain.Job;
|
||||
import org.springframework.batch.core.repository.DuplicateJobException;
|
||||
import org.springframework.batch.core.repository.JobRegistry;
|
||||
import org.springframework.beans.factory.config.AutowireCapableBeanFactory;
|
||||
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
|
||||
import org.springframework.beans.factory.xml.XmlBeanFactory;
|
||||
|
||||
Reference in New Issue
Block a user