Package: StandardPipelineFactory

StandardPipelineFactory

nameinstructionbranchcomplexitylinemethod
StandardPipelineFactory()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
create()
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
createCompensatingPipeline(PipelineStage)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2008, 2010 VMware Inc.
3: * All rights reserved. This program and the accompanying materials
4: * are made available under the terms of the Eclipse Public License v1.0
5: * which accompanies this distribution, and is available at
6: * http://www.eclipse.org/legal/epl-v10.html
7: *
8: * Contributors:
9: * VMware Inc. - initial contribution
10: *******************************************************************************/
11:
12: package org.eclipse.virgo.kernel.install.pipeline.internal;
13:
14: import org.eclipse.virgo.kernel.install.pipeline.Pipeline;
15: import org.eclipse.virgo.kernel.install.pipeline.PipelineFactory;
16: import org.eclipse.virgo.kernel.install.pipeline.stage.PipelineStage;
17:
18: /**
19: * {@link StandardPipelineFactory} is the default implementation of {@link PipelineFactory}.
20: * <p />
21: *
22: * <strong>Concurrent Semantics</strong><br />
23: *
24: * This class is thread safe.
25: *
26: */
27: public class StandardPipelineFactory implements PipelineFactory {
28:
29: /**
30: * {@inheritDoc}
31: */
32: public Pipeline create() {
33: return new StandardPipeline();
34: }
35:
36: /**
37: * {@inheritDoc}
38: */
39: public Pipeline createCompensatingPipeline(PipelineStage compensation) {
40: return new CompensatingPipeline(compensation);
41: }
42:
43: }