|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.webmacro.engine.ParserProvider
Utility class to assist in the creation of directives.
Constructor Summary | |
ParserProvider()
|
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 |
Constructor Detail |
public ParserProvider()
Method Detail |
public final void register(java.lang.String pClassName, java.lang.String pType) throws IntrospectionException, InitException
IntrospectionException
- something wrong with the class
InitException
- duplicate registrationpublic final Parser getParser(java.lang.String pname) throws NotFoundException
NotFoundException
public java.lang.String getType()
Provider
getType
in interface Provider
public void init(Broker broker, Settings p) throws InitException
Provider
init
in interface Provider
InitException
public void destroy()
Provider
destroy
in interface Provider
public java.lang.Object get(java.lang.String name) throws NotFoundException
Provider
get
in interface Provider
NotFoundException
public void flush()
Provider
flush
in interface Provider
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |