Skip to main content

Code Reuse

Reusable pieces of code should be packaged as beans so that they can be reused. It is good practice to create static methods where possible so that a new instance of the class does not need to be instantiated for each method. If this cannot be done then a workaround is to use the cBeanRegister component which is mentioned in the best practices section of this document.

However it is achieved, it is important to make sure that code is reused wherever possible.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!