|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.robotframework.javalib.library.KeywordFactoryBasedLibrary<T>
public abstract class KeywordFactoryBasedLibrary<T extends Keyword>
A library that wraps a keyword factory. The keyword factory is used
to create the keyword instance and this library simply executes the
keyword. Subclasses must implement factory method
createKeywordFactory().
| Constructor Summary | |
|---|---|
KeywordFactoryBasedLibrary()
|
|
| Method Summary | |
|---|---|
protected abstract KeywordFactory<T> |
createKeywordFactory()
Creates a keyword factory. |
java.lang.ClassLoader |
getClassLoader()
Gets the classloader. |
java.lang.String[] |
getKeywordNames()
Returns all the keywords this library contains |
java.lang.Object |
runKeyword(java.lang.String keywordName,
java.lang.Object[] args)
Runs a keyword and returns the result. |
void |
setClassLoader(java.lang.ClassLoader classLoader)
Sets the classloader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeywordFactoryBasedLibrary()
| Method Detail |
|---|
public java.lang.Object runKeyword(java.lang.String keywordName,
java.lang.Object[] args)
RobotJavaLibrary
runKeyword in interface RobotJavaLibrarykeywordName - keyword name to runargs - arguments for the keyword
RobotJavaLibrary.runKeyword(String, Object[])public java.lang.String[] getKeywordNames()
RobotJavaLibrary
getKeywordNames in interface RobotJavaLibraryRobotJavaLibrary.getKeywordNames()public java.lang.ClassLoader getClassLoader()
Thread.getContextClassLoader().
public void setClassLoader(java.lang.ClassLoader classLoader)
classLoader - new classloaderprotected abstract KeywordFactory<T> createKeywordFactory()
getKeywordNames() or runKeyword(String, Object[])
is called for the first time.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||