EMMA Coverage Report (generated Fri Aug 21 15:59:46 BST 2009)
[all classes][org.springframework.batch.core.explore.support]

COVERAGE SUMMARY FOR SOURCE FILE [MapJobExplorerFactoryBean.java]

nameclass, %method, %block, %line, %
MapJobExplorerFactoryBean.java100% (1/1)100% (6/6)100% (31/31)100% (7/7)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class MapJobExplorerFactoryBean100% (1/1)100% (6/6)100% (31/31)100% (7/7)
MapJobExplorerFactoryBean (): void 100% (1/1)100% (3/3)100% (1/1)
createExecutionContextDao (): ExecutionContextDao 100% (1/1)100% (4/4)100% (1/1)
createJobExecutionDao (): JobExecutionDao 100% (1/1)100% (4/4)100% (1/1)
createJobInstanceDao (): JobInstanceDao 100% (1/1)100% (4/4)100% (1/1)
createStepExecutionDao (): StepExecutionDao 100% (1/1)100% (4/4)100% (1/1)
getObject (): Object 100% (1/1)100% (12/12)100% (2/2)

1/*
2 * Copyright 2006-2007 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.repository.dao.ExecutionContextDao;
20import org.springframework.batch.core.repository.dao.JobExecutionDao;
21import org.springframework.batch.core.repository.dao.JobInstanceDao;
22import org.springframework.batch.core.repository.dao.MapExecutionContextDao;
23import org.springframework.batch.core.repository.dao.MapJobExecutionDao;
24import org.springframework.batch.core.repository.dao.MapJobInstanceDao;
25import org.springframework.batch.core.repository.dao.MapStepExecutionDao;
26import org.springframework.batch.core.repository.dao.StepExecutionDao;
27import org.springframework.beans.factory.FactoryBean;
28 
29/**
30 * A {@link FactoryBean} that automates the creation of a
31 * {@link SimpleJobExplorer} using in-memory DAO implementations.
32 * 
33 * @author Dave Syer
34 * @since 2.0
35 */
36public class MapJobExplorerFactoryBean extends AbstractJobExplorerFactoryBean {
37 
38        @Override
39        protected JobExecutionDao createJobExecutionDao() throws Exception {
40                return new MapJobExecutionDao();
41        }
42 
43        @Override
44        protected JobInstanceDao createJobInstanceDao() throws Exception {
45                return new MapJobInstanceDao();
46        }
47 
48        @Override
49        protected StepExecutionDao createStepExecutionDao() throws Exception {
50                return new MapStepExecutionDao();
51        }
52 
53        @Override
54        protected ExecutionContextDao createExecutionContextDao() throws Exception {
55                return new MapExecutionContextDao();
56        }
57 
58        public Object getObject() throws Exception {
59                return new SimpleJobExplorer(createJobInstanceDao(), createJobExecutionDao(), createStepExecutionDao(),
60                                createExecutionContextDao());
61        }
62 
63}

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