Package: HeaderParserFactory

HeaderParserFactory

nameinstructionbranchcomplexitylinemethod
HeaderParserFactory()
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%
newHeaderParser(ParserLogger)
M: 0 C: 5
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

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.util.osgi.manifest.parse;
13:
14: import org.eclipse.virgo.util.osgi.manifest.parse.standard.StandardHeaderParser;
15:
16: /**
17: * Factory for creating {@link HeaderParser} instances
18: * <p/>
19: * .
20: *
21: * <strong>Concurrent Semantics</strong><br />
22: *
23: * Threadsafe.
24: *
25: */
26: public final class HeaderParserFactory {
27:
28:         /**
29:          * Creates a new {@link HeaderParser} that logs to the supplied {@link ParserLogger}.
30:          *
31:          * @param logger the <code>ParserLogger</code> to log to.
32:          * @return the new <code>HeaderParser</code>.
33:          */
34:         public static HeaderParser newHeaderParser(ParserLogger logger) {
35:                 return new StandardHeaderParser(logger);
36:         }
37: }