资 源 简 介
All JSR-168 and JSR-286 portlets support a configuration or "Edit" mode in which a user or administrator can set various options or parameters for the portlet. In the code, defining, displaying, storing, and retrieving these preference values can take quite a bit of relatively tedious coding. The resulting classes and references tend to be spread throughout the code, with messy constants and repetitive retrieval code. This project contains utility classes and example code which use the powerful Java 1.5 Enum to make Portlet Preferences easy to create and use.