org.webmacro.engine
Class ParserProvider
java.lang.Object
|
+--org.webmacro.engine.ParserProvider
- All Implemented Interfaces:
- Provider
- public final class ParserProvider
- extends java.lang.Object
- implements Provider
Utility class to assist in the creation of directives.
Method Summary |
void |
destroy()
Close down this provider, freeing any allocated resources. |
void |
flush()
Clear any cache this provider may be maintaining |
java.lang.Object |
get(java.lang.String name)
Get the object associated with the specified query |
Parser |
getParser(java.lang.String pname)
|
java.lang.String |
getType()
Return an array representing the types this provider serves up |
void |
init(Broker broker,
Settings p)
Initialize this provider based on the specified config. |
void |
register(java.lang.String pClassName,
java.lang.String pType)
Register a new parser class, |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserProvider
public ParserProvider()
register
public final void register(java.lang.String pClassName,
java.lang.String pType)
throws IntrospectionException,
InitException
- Register a new parser class,
- Throws:
IntrospectionException
- something wrong with the classInitException
- duplicate registration
getParser
public final Parser getParser(java.lang.String pname)
throws NotFoundException
getType
public java.lang.String getType()
- Description copied from interface:
Provider
- Return an array representing the types this provider serves up
- Specified by:
getType
in interface Provider
init
public void init(Broker broker,
Settings p)
throws InitException
- Description copied from interface:
Provider
- Initialize this provider based on the specified config.
- Specified by:
init
in interface Provider
destroy
public void destroy()
- Description copied from interface:
Provider
- Close down this provider, freeing any allocated resources.
- Specified by:
destroy
in interface Provider
get
public java.lang.Object get(java.lang.String name)
throws NotFoundException
- Description copied from interface:
Provider
- Get the object associated with the specified query
- Specified by:
get
in interface Provider
flush
public void flush()
- Description copied from interface:
Provider
- Clear any cache this provider may be maintaining
- Specified by:
flush
in interface Provider