How can I treat my bean differently at design time?

John Zukowski

The static isDesignTime() method of the Beans class allows your bean to act differently at design time vs. at runtime, potentially freeing up CPU cycles for the designer. For instance, if the purpose of a bean is to display the value of PI to one million digits, at design time it is okay to only display something like seven.