public interface ParserLoader
Modifier and Type | Method and Description |
---|---|
void |
addParser(TypedParser parser,
Class<?> parserInterface)
Registers the specified parser in the pool of parsers that implement
the specified interface.
|
TypedParser |
getParser(String name,
Class<?> parserInterface)
Returns the parser with the specified name and from the specified
interface pool.
|
TypedParser getParser(String name, Class<?> parserInterface)
name
- symbolic name of the parserparserInterface
- interface fulfilled by the parservoid addParser(TypedParser parser, Class<?> parserInterface)
parser
- instance to be registredparserInterface
- interface fulfilled by the parserCopyright © 2016. All Rights Reserved.