|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.urd.impl.ParameterDispatcher
The parameter dispatcher handles service parameters as read from a Urd XML config file.
| Constructor Summary | |
ParameterDispatcher(ErrorHandler handler)
Create a parameter dispatcher. |
|
| Method Summary | |
InitParameters |
getParameters(java.net.URL codebase)
Get init parameters for a service at a URL. |
boolean |
isAutoStart(java.net.URL codebase)
Check is a service from a codebase is marked as an auto-start service. |
protected abstract org.w3c.dom.Document |
loadParameters()
Read the parameters file and load it into an XML document. |
protected abstract java.net.URL |
resolveSource(java.lang.String source)
Resove a string into a URL. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ParameterDispatcher(ErrorHandler handler)
handler - Error handler to report exceptions to| Method Detail |
public InitParameters getParameters(java.net.URL codebase)
InitParameters object if no parameters are found.
getParameters in interface Parameterscodebase - Service to find parameters for
public boolean isAutoStart(java.net.URL codebase)
throws NotConfiguredException
isAutoStart in interface Parameterscodebase - Service to check
NotConfiguredException
protected abstract org.w3c.dom.Document loadParameters()
throws java.io.IOException,
XMLException
java.io.IOException - on IO errors
XMLException - on malformed XMLprotected abstract java.net.URL resolveSource(java.lang.String source)
../lib/http.jarand the source of the parameters is:
/usr/norna/conf/then this method should return:
file://usr/norna/lib/http.jarThis method should return null if it cannot parse the source into a valid URL object.
source - Source string to resolve into a URL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||