wiki:CORE_ADDITIONS_R1

Version 4 (modified by gogov, 16 years ago) (diff)

--

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Analysis

Overview

This task involves the improvement of org.sophie2.core module.

Task requirements

  • Revise org.sophie2.core and add some extra functionality that is needed:
    • Provide a @lazy annotation for AutoProperties:
      • @lazy should be used to implement lazy invocation of the compute() method in the AutoProperty
      • this would provide a performance optimization of AutoProperties holding references to objects which potentially will be never used
    • Provide a @const annotation for AutoProperties:
      • @const must ensure that the compute() method is called only once
  • Write appropriate unit tests

Task result

The result of this task should be source code (including unit tests).

Implementation idea

Use reflection for @const.

PRO_LIB_CORE_TUTORIAL
CORE_ADDITIONS_R0

How to demo

Run the unit tests and show the results to the team.

Design

Implementation

Testing

Comments