Registering a Custom Content Provider and Content Handler

Prerequisites

  • Custom IContentHandler class is implemented and ready

  • Custom IContentProvider class is implemented and ready

Procedure

  1. Create a portal service that contains the IContentHandler and the IContentProvider classes.

    For more information about creating a portal service, see Creating a Portal Service .

  2. In the init(..) method of IService , register the classes, as shown in the example below.

  3. In the destroy(..) method of IService , unregister the classes, as shown in the example below.

  4. In the portalapp.xml of the portal component:

    1. Define a hard reference to WPCFacade (tc~ep~wpc~api)

    2. Define the service as startup=true

The following examples show how to register and unregister the custom classes in the init(..) and destroy(..) methods, respectively, of a custom IService implementation.