CALLS FOR: MMObjectBuilder OBJ2TYPE property and extra functions
Last week, I made a proposal to get rid of the "vpro" MMObjectBuilder, but
now is the time to get really rid of this code.
The differences with the mmbase MMObjectBuilder are a bigger objecttype
cache and some extra executeFunctions.
START OF CALL: Fri Feb 21 2003 09:45
END OF CALL: Wed Feb 26 2003 09:45
CALL FOR OBJ2TYPE cache property.
The OBJ2TYPE_MAX_SIZE is hardcoded in the MMObjectBuilder. Adding this
code will make it configurable.
----------- org.mmbase.module.core.MMObjectBuilder -----------
/**
* The cache that contains the last X types of all requested objects
* replacement of object2type
* The variable obj2type will be replaced by typeCache
*/
private static Cache typeCache;
static {
typeCache = new Cache(OBJ2TYPE_MAX_SIZE) {
public String getName() { return "TypeCache"; }
public String getDescription() { return "Cache for node types";}
};
typeCache.putCache();
}
----------- config/caches.xml -----------
<cache name="TypeCache">
<status>active</status>
<size>20000</size>
</cache>
-----------
This change is for mmbase 1.6 and 1.7
[_] +1 (YEA)
[_] +0 (ABSTAIN )
[_] -1 (NAY), because :
[_] VETO, because:
CALL FOR extra functions in mmbase 1.6
Maintaining a core source has already given some issues and won't stop
doing in the future. That is why we want to get rid of it. The above call
is an improvement of the code, but this one is just a requirement for the
vpro sites.
The method executeFunction(...) of the vpro has some extra field functions
needed for current vpro sites.
The extra functions are
- xml and pml (escape xml characters < > & " ')
- escapejavascript
Moving this into the mmbase 1.6 branch will make development life at the
vpro easier. The 1.7 head will not be changed at this time. The
requirement for these functions in 1.7 is documented in the vpro cvs. !.7
will be changed in the future to support these functions in a extendible
way and moving all functions into a better structure.
This change is for mmbase 1.6
[_] +1 (YEA)
[_] +0 (ABSTAIN )
[_] -1 (NAY), because :
[_] VETO, because: