Registering a Custom Content Provider and Content Handler
Prerequisites
-
Custom IContentHandler class is implemented and ready
-
Custom IContentProvider class is implemented and ready
Procedure
-
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 .
-
In the init(..) method of IService , register the classes, as shown in the example below.
-
In the destroy(..) method of IService , unregister the classes, as shown in the example below.
-
In the portalapp.xml of the portal component:
-
Define a hard reference to WPCFacade (tc~ep~wpc~api)
-
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.