Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

See the below interfaces; Processor modules can register handlers for specific content types during module startup (or whenever deemed appropriate by the module). The content handlers need to provide functionality to save and retrieve content. Interface handlers can simply then retrieve a registered instance based on the content type of the data they need to handle. The Content Handler module will provide a default handler in the case that there are no handlers registered for a requested type. Most likely this default handler will be the Unstructured Document handler. The module follows the prototype pattern in order to handle for content handler instantiationsinstantiation. When registering a handler, a Processor module provides an instance of a handler. Then whenever the getContentHandler method is called, the Content Handler module will clone an instance of the handler for use by the caller.

...