Implement a standard JavaScript component interface:
Implement the
operator to create instances of the component.Use uppercase letters for constants.
Define all constants as children of the component class.
Implement the
method, and accept an array where appropriate.Implement the
field, and return an array where appropriate.Each method is logged automatically to the confirmation page when called. Use
to hide methods or arguments that should not appear in the confirmation page, such as passwords. To hide methods or arguments, do either of the following:To prevent a method from appearing at all on the confirmation page, add
before the method declaration.To prevent only the arguments of a method from appearing on the confirmation page, add
before the method declaration. The arguments are replaced with the text on the confirmation page.Log all activity using the Apache Software Foundation Apache log4j software framework, using the following levels:
ERROR—Fatal errors, such as system failures
WARN—Non-fatal errors, such as script exceptions
INFO—Diagnostic information, such as progress or status
DEBUG—Debugging information
Handle script errors by throwing exceptions. Avoid catching exceptions within the component.
Use
for output files and temporary files.Add a bean,
, in applicationContext.xml to show the version number of the component in LMC.