EMMA Coverage Report (generated Thu May 22 12:08:10 CDT 2014)
[all classes][org.springframework.batch.core.explore.support]

COVERAGE SUMMARY FOR SOURCE FILE [AbstractJobExplorerFactoryBean.java]

nameclass, %method, %block, %line, %
AbstractJobExplorerFactoryBean.java100% (1/1)100% (3/3)100% (7/7)100% (3/3)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractJobExplorerFactoryBean100% (1/1)100% (3/3)100% (7/7)100% (3/3)
AbstractJobExplorerFactoryBean (): void 100% (1/1)100% (3/3)100% (1/1)
getObjectType (): Class 100% (1/1)100% (2/2)100% (1/1)
isSingleton (): boolean 100% (1/1)100% (2/2)100% (1/1)

1/*
2 * Copyright 2006-2013 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 
17package org.springframework.batch.core.explore.support;
18 
19import org.springframework.batch.core.explore.JobExplorer;
20import org.springframework.batch.core.repository.dao.ExecutionContextDao;
21import org.springframework.batch.core.repository.dao.JobExecutionDao;
22import org.springframework.batch.core.repository.dao.JobInstanceDao;
23import org.springframework.batch.core.repository.dao.StepExecutionDao;
24import org.springframework.beans.factory.FactoryBean;
25 
26/**
27 * A {@link FactoryBean} that automates the creation of a
28 * {@link SimpleJobExplorer}. Declares abstract methods for providing DAO
29 * object implementations.
30 *
31 * @see JobExplorerFactoryBean
32 * @see MapJobExplorerFactoryBean
33 *
34 * @author Dave Syer
35 * @since 2.0
36 */
37public abstract class AbstractJobExplorerFactoryBean implements FactoryBean<JobExplorer> {
38 
39        /**
40         * @return fully configured {@link JobInstanceDao} implementation.
41         */
42        protected abstract JobInstanceDao createJobInstanceDao() throws Exception;
43 
44        /**
45         * @return fully configured {@link JobExecutionDao} implementation.
46         */
47        protected abstract JobExecutionDao createJobExecutionDao() throws Exception;
48 
49        protected abstract StepExecutionDao createStepExecutionDao() throws Exception;
50 
51        protected abstract ExecutionContextDao createExecutionContextDao() throws Exception;
52 
53        /**
54         * The type of object to be returned from {@link #getObject()}.
55         *
56         * @return JobExplorer.class
57         * @see org.springframework.beans.factory.FactoryBean#getObjectType()
58         */
59        @Override
60        public Class<JobExplorer> getObjectType() {
61                return JobExplorer.class;
62        }
63 
64        @Override
65        public boolean isSingleton() {
66                return true;
67        }
68 
69}

[all classes][org.springframework.batch.core.explore.support]
EMMA 2.0.5312 (C) Vladimir Roubtsov