Part of twisted.application.app View Source View In Hierarchy
An object which helps running an application based on a config object.Subclass me and implement preApplication and postApplication methods. postApplication generally will want to run the reactor after starting the application.
|Instance Variables||config||The config object, which provides a dict-like interface.|
|application||Available in postApplication, but not preApplication. This is the application object.|
|profilerFactory||Factory for creating a profiler object, able to profile the application if options are set accordingly.|
|profiler||Instance provided by |
|loggerFactory||Factory for creating object responsible for logging.|
|logger||Instance provided by |
|Method||run||Run the application.|
|Method||startLogging||Initialize the logging system. DEPRECATED.|
|Method||startReactor||Run the reactor with the given configuration. Subclasses should
probably call this from
|Method||preApplication||Override in subclass.|
|Method||postApplication||Override in subclass.|
|Method||createOrGetApplication||Create or load an Application based on the parameters found in the given
|Parameters||observer||The observer to add to the logging system.|
Override in subclass.This should set up any state necessary before loading and running the Application.
Override in subclass.This will be called after the application has been loaded (so the
applicationattribute will be set). Generally this should start the application and run the reactor.
Create or load an Application based on the parameters found in the given
If a subcommand was used, the
that it represents will be used to construct a service to be added to a