Class DefaultParserManager
- java.lang.Object
-
- org.apache.maven.doxia.parser.manager.DefaultParserManager
-
- All Implemented Interfaces:
ParserManager
@Component(role=ParserManager.class) public class DefaultParserManager extends java.lang.Object implements ParserManager
Simple implementation of theParserManager
interface.- Since:
- 1.0
- Version:
- $Id: DefaultParserManager.java 1345590 2012-06-02 21:36:10Z hboutemy $
- Author:
- Jason van Zyl
-
-
Field Summary
-
Fields inherited from interface org.apache.maven.doxia.parser.manager.ParserManager
ROLE
-
-
Constructor Summary
Constructors Constructor Description DefaultParserManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Parser
getParser(java.lang.String id)
Returns the parser that corresponds to the given id.
-
-
-
Method Detail
-
getParser
public Parser getParser(java.lang.String id) throws ParserNotFoundException
Returns the parser that corresponds to the given id.- Specified by:
getParser
in interfaceParserManager
- Parameters:
id
- The identifier.- Returns:
- The corresponding parser.
- Throws:
ParserNotFoundException
- if no parser could be found for the given id.
-
-