Portlet Factory, Version 6.1.2
Using the ProfileSelection interface
Profile Sets and profiles are not bound to a particular model. As a result, to override the default profile selection the developer must specify the class to perform this functionality in the profile set. The specified class must implement the ProfileSelection interface. The class name for this class must be specified within the selection handler definition file. A ProfileSelection interface has two methods that will be called at generation time:
- The init() method
- This is used to do any initialization before the selectProfile(..) method is called.
- The selectProfile() method
- This method selects a profile from the specified profile set. The returned profile name is used to generate a new instance of the WebApp.
Parent topic: Profile selection and storage management
- Example: Profile Selection Class
Here is a sample implementation of a custom profile selection class.
- Example: Profile Selection Interface
A typical profile selection interface looks as follows.
Library | Support |