Ignore:
Timestamp:
06/28/13 11:56:03 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

  • FramsClass? and contained Param are now immutable classes (like String),

which allows to refer to them concurrently without synchronization
(which for example in turn simplifies GUI management)

  • also make Path immutable (which was earlier only assumed)
  • add global cache for FramsClasses? created solely and automatically

on base of Java classes.

representations basing on given FramsClass?

  • above changes greatly improved GUI responsivness during browsing
  • furtherly improve Param class hierarchy
  • allow to inject actions on state changes into MultiParamLoader?
  • add more tests

CHANGELOG:

Add StatusListener? to MultiParamLoader?.

Minor refactorization in MultiParamLoader?.

First step with auto append.

Add SchemaTest?.

Improve Registry.

Clean up in Registry.

Work out Registry.

Use annotations for Param.

Fix ListChange?.

Improve fluent interface of the FramsClassBuilder?.

Done caching of ReflectionAccess?.Backend

Fix hashCode of Pair.

A step on a way to cache ReflectionAccess?.Backend

Make SimpleAbstractAccess?.framsClass a final field.

Add static cache for FramsClasses? based on java.

Only classes created strictly and automatically
based on java classes are using this cache.

Make all Params immutable.

Many improvement to make Param immutable.

Make PrimitiveParam? generic type.

Several changes to make Param immutable.

Make FramsClass? immutable.

Another improvement to Path immutability.

Several improvements to Path.

Improve PathTest?.

Configurarable MutabilityDetector?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/main/java/com/framsticks/hosting/ServerInstance.java

    r86 r87  
    22
    33import com.framsticks.core.*;
    4 import com.framsticks.params.CompositeParam;
    54import com.framsticks.params.ConstructionException;
    65import com.framsticks.params.FramsClass;
    7 import com.framsticks.params.FramsClassBuilder;
    86import com.framsticks.params.Param;
    97import com.framsticks.core.LocalInstance;
     
    4442                hosted.setName("hosted");
    4543                hosted.configure(hostedConfig);
    46                 root = new Node((CompositeParam) Param.build().name("root").id("root").type("o" + hosted.getClass().getCanonicalName()).finish(), hosted);
     44                root = new Node(Param.build().name("root").id("root").type("o" + hosted.getClass().getCanonicalName()), hosted);
    4745        }
    4846
     
    5957                try {
    6058                        Class<?> nativeClass = Class.forName(id);
    61                         FramsClass framsClass = FramsClassBuilder.buildForClass(nativeClass);
     59                        FramsClass framsClass = FramsClass.build().forClass(nativeClass);
    6260
    6361                        if (!framsClass.getId().equals(id)) {
Note: See TracChangeset for help on using the changeset viewer.