Package: ImportMergeException

ImportMergeException

nameinstructionbranchcomplexitylinemethod
ImportMergeException(String, String, String)
M: 30 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%
getConflictingPackageName()
M: 9 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getSources()
M: 9 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.osgi.framework;
13:
14:
15: /**
16: * {@link ImportMergeException} is thrown when conflicting imports are detected.
17: * <p />
18: *
19: * <strong>Concurrent Semantics</strong><br />
20: *
21: * This class is immutable and therefore thread safe.
22: *
23: */
24: public class ImportMergeException extends OsgiFrameworkException {
25:
26: private static final long serialVersionUID = 56985682345987L;
27:
28: private final String conflictingPackageName;
29:
30: private final String sources;
31:
32: /**
33: * Creates a new <code>ImportMergeException</code> with the supplied error message.
34: * @param conflictingPackageName of package where conflicting merges meet
35: * @param sources conflicting imports
36: * @param message The reason (String) for merge failure
37: */
38: public ImportMergeException(String conflictingPackageName, String sources, String message) {
39: super("cannot merge imports of package '" + conflictingPackageName + "' from sources '" + sources + "' because of " + message);
40: this.conflictingPackageName = conflictingPackageName;
41: this.sources = sources;
42: }
43:
44: /**
45: * Get the name of the package that failed to merge.
46: *
47: * @return the name of the package that failed to merge
48: */
49: public final String getConflictingPackageName() {
50: return this.conflictingPackageName;
51: }
52:
53: /**
54: * Get the sources of the package that failed to merge.
55: *
56: * @return the sources of the package that failed to merge
57: */
58: public final String getSources() {
59: return this.sources;
60: }
61:
62: }