@Component(role=ParserManager.class) public class DefaultParserManager extends Object implements ParserManager
ParserManager
interface.ROLE
Constructor and Description |
---|
DefaultParserManager() |
Modifier and Type | Method and Description |
---|---|
Parser |
getParser(String id)
Returns the parser that corresponds to the given id.
|
public DefaultParserManager()
public Parser getParser(String id) throws ParserNotFoundException
getParser
in interface ParserManager
id
- The identifier.ParserNotFoundException
- if no parser could be found
for the given id.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.