Changes between Version 20 and Version 21 of PRO_LIB_CORE_TUTORIAL


Ignore:
Timestamp:
10/03/08 21:13:31 (17 years ago)
Author:
Tanya
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PRO_LIB_CORE_TUTORIAL

    v20 v21  
    11[[BackLinksMenu]] 
    22[[TOC]] 
    3  
    4 = Properties Idea = 
     3= Properties Library Tutorial = 
     4 
     5== Properties Idea == 
    56Properties give solution to the sequence of problems: 
    67 * Initialization order problems 
     
    1011 * Optimization (central point) 
    1112 * Safety (detect errors) 
    12 = Properties Heirarchy = 
     13== Properties Heirarchy == 
    1314  * !ProObject - Object with properties. All objects needing property support should implement this interface. 
    1415  * !ProBean - Each bean is associated one to one with a !ProObject. 
     
    3233[[BR]] 
    3334[[BR]] 
    34 == List properties hierarchy == 
     35=== List properties hierarchy === 
    3536[[Image(source:/trunk/sophie2-platform/modules/org.sophie2.core/doc/ProList.png)]] 
    3637[[BR]] 
    3738[[BR]] 
    3839[[BR]] 
    39 == Binding hierarchy == 
     40=== Binding hierarchy === 
    4041  * It is the existing bindings hierarchy but bindings are '''deprecated'''. 
    4142[[Image(source:/trunk/sophie2-platform/modules/org.sophie2.core/doc/Deprecated.png)]] 
    42 = Properties Kinds = 
     43== Properties Kinds == 
    4344 * Property 
    4445  * !ObjectProperty - A property which holds a reference to a single object. 
     
    5253   * !ChildrenProperty - Property which manages list of children for a child/parent relation. 
    5354 
    54 = Code Examples with different Properties Kinds =  
    55 == How to make == 
     55== Code Examples with different Properties Kinds == 
     56=== How to make === 
    5657 * !FinalProperty 
    5758{{{ 
     
    125126}}} 
    126127 
    127 === Methods To Use === 
     128==== Methods To Use ==== 
    128129These are methods of the !ProBean class. 
    129130 * Creates a read-write value prop by given property class. 
     
    205206}}} 
    206207 
    207 == Bad Code Examples == 
     208=== Bad Code Examples === 
    208209 
    209210 * Resource Property is a better choice. 
     
    229230}}} 
    230231 
    231 = Demo = 
     232== Demo == 
    232233 * Tutorial unit test demonstrating the usage of !AutoProperty 
    233234[[Include(source:/trunk/sophie2-platform/modules/org.sophie2.core/src/test/java/org/sophie2/core/prolib/tutorial/AutoPropertyDemo.java)]] 
    234235 
    235 = How to apply properties to Sophie 2.0 = 
     236== How to apply properties to Sophie 2.0 == 
    236237 * To get rid of the fields, except for immutable classes, and public static final things. 
    237238  * Note that final instance fields are not so safe, because they are initialized after the super constructors. 
     
    241242 * To be careful of cyclic dependencies (like a = b + 1, b = a + 1). No library can solve them. 
    242243 
    243 = Comments = 
     244== Comments ==