07 Extending the JSR-168 Portlet Adapter

uPortal implements JSR-168 support by means of an adapter class.

One particular advantage of this approach is that you can edit or extend this adapter class to implement particular portlet integration behaviors, e.g. mapping particular portal information into local portlet request attributes or person attributes.

However, if you do extend the CPortletAdapter class, it is important that all instances of the adapter class in uPortal use your extended adapter rather than the default CPortletAdapter. There should only be one class implementing portlet adaption in your running uPortal instance. This way the Pluto portlet container will not be multiply instantiated, avoiding some bugs that manifest when it is multiply instantiated within a single uPortal instance.