org.apache.maven.doxia.parser.manager
Class DefaultParserManager

java.lang.Object
  extended by org.apache.maven.doxia.parser.manager.DefaultParserManager
All Implemented Interfaces:
ParserManager

@Component(role=ParserManager.class)
public class DefaultParserManager
extends Object
implements ParserManager

Simple implementation of the ParserManager 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
DefaultParserManager()
           
 
Method Summary
 Parser getParser(String id)
          Returns the parser that corresponds to the given id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultParserManager

public DefaultParserManager()
Method Detail

getParser

public Parser getParser(String id)
                 throws ParserNotFoundException
Returns the parser that corresponds to the given id.

Specified by:
getParser in interface ParserManager
Parameters:
id - The identifier.
Returns:
The corresponding parser.
Throws:
ParserNotFoundException - if no parser could be found for the given id.


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.