[C2-devel] [JIRA][Carrot2] Created: (CARROT-733) AttributeDescriptor cleanups.
Brought to you by:
dawidweiss,
stachoo
From: Dawid W. (JIRA) <daw...@cs...> - 2010-09-30 12:13:08
|
AttributeDescriptor cleanups. ----------------------------- Key: CARROT-733 URL: http://issues.carrot2.org/browse/CARROT-733 Project: Carrot2 Issue Type: Refactoring Components: Framework Core, Web Application Reporter: Dawid Weiss Assignee: Stanisław Osiński Priority: Minor Fix For: 3.5.0 Currently AttributeDescriptor holds a mix of "dynamic" and static information about an attribute of a Bindable type. The dynamic information the the "defaultValue", which cannot be extracted at compile-time (because non-primitive types are initialized in initialization blocks). Removing SimpleXML annotations from AttributeDescriptor would provide a way for further refactoring which should lead to the following state: {noformat} BindableDescriptor [rename to =>] DynamicBindableDescriptor => Dynamic information about an instance of a @Bindable class, including a map of default values of attributes, attribute grouping, etc. IBindableDescriptor [already present, generated] => Classes automatically generated for @Bindable classes, contain static information about attributes. AttributeInfo [rename to =>] AttributeDescriptor => Static information about an attribute (currently stored in AttributeDescriptor and AttributeMetadata) AttributeDescriptor [delete, replaced with static AttributeDescriptor; default value stored in a map inside DynamicBindableDescriptor] AttributeMetadata [delete, becomes part of the new AttributeDescriptor] BindableMetadata [delete, becomes part of IBindableDescriptor] {noformat} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.carrot2.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |