|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drupal.project.async_command.GenericDrupalApp
org.drupal.project.async_command.PyDrupalApp
public class PyDrupalApp
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.drupal.project.async_command.GenericDrupalApp |
---|
GenericDrupalApp.RunningMode |
Field Summary |
---|
Fields inherited from class org.drupal.project.async_command.GenericDrupalApp |
---|
acceptableCommandClass, config, drupalConnection, executor, logger |
Constructor Summary | |
---|---|
protected |
PyDrupalApp()
anually set DrupalConnection and call initialize() required. |
|
PyDrupalApp(DrupalConnection drupalConnection)
This calls a function initialize() for other initialization stuff. |
Method Summary | |
---|---|
java.lang.String |
getIdentifier()
Derived function has to override it. |
protected void |
initialize()
|
protected void |
registerCommandClassWithIdentifier(java.lang.String identifier,
java.lang.Class<? extends AsyncCommand> commandClass)
Has to use a different name for the function because Jython/Python doesn't support function overloading. |
Methods inherited from class org.drupal.project.async_command.GenericDrupalApp |
---|
getDrupalConnection, handleException, parseCommand, registerCommandClass, registerCommandClass, run, runParallel, runSerial, setDrupalConnection, setRunningMode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PyDrupalApp(DrupalConnection drupalConnection)
drupalConnection
- Connection to a Drupal database that has the {async_command} table.protected PyDrupalApp()
Method Detail |
---|
protected void initialize()
public java.lang.String getIdentifier()
getIdentifier
in class GenericDrupalApp
protected void registerCommandClassWithIdentifier(java.lang.String identifier, java.lang.Class<? extends AsyncCommand> commandClass)
identifier
- commandClass
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |