You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Greg Brown (JIRA)" <ji...@apache.org> on 2010/04/20 17:27:52 UTC
[jira] Updated: (PIVOT-470) Move WTKXSerializer to
org.apache.pivot.beans and rename to BeanSerializer
[ https://issues.apache.org/jira/browse/PIVOT-470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Brown updated PIVOT-470:
-----------------------------
Attachment: sample.wtkx
Having prototyped what this might look like in practice (see sample.wtkx), I think that the following approach will work best:
- Move all classes in org.apache.pivot.wtkx to org.apache.pivot.beans
- Rename WTKXSerializer to BeanSerializer
- Rename @WTKX to @BXML
- Do not allow the processing namespace prefix to be configurable; standardize on "bx" (which maps to the "http://pivot.apache.org/bxml" namespace URI) - this will replace the "wtkx" prefix
- Continue to use .wtkx as a file extension for WTK markup, since this accurately reflects the default namespace declared by the file ("org.apache.pivot.wtk"); other extensions may be defined as needed, and .bxml can be used as a default extension when another extension is not appropriate
> Move WTKXSerializer to org.apache.pivot.beans and rename to BeanSerializer
> --------------------------------------------------------------------------
>
> Key: PIVOT-470
> URL: https://issues.apache.org/jira/browse/PIVOT-470
> Project: Pivot
> Issue Type: Improvement
> Components: core-beans
> Reporter: Greg Brown
> Fix For: 1.5
>
> Attachments: sample.wtkx
>
>
> WTKXSerializer does not currently have any dependencies on org.apache.pivot.wtk and can technically be used to deserialize any arbitrary bean hierarchy. Moving it to pivot-core will allow developers to take advantage of it on the server where it can be used to facilitate design patterns such as dependency injection and aspect-oriented programming.
> There is a question of what prefix to use for the internal processing namespace (currently "wtkx"). Should this continue to be "wtkx" for WTKX files, or should it be something more generic ("bxml", "bx", "jbx", etc.)? This prefix could also be used as a generic file extension for bean markup files when a more appropriate extension is not available.
> There is also the question of what to call the @WTKX annotation. This should probably also parallel the namespace prefix.
> It may be valid for WTKX files to retain the .wtkx extension, since it clearly articulates what type of bean XML the file contains. This notion is further reinforced by the fact that the default namespace for WTKX files refers to the WTK package, org.apache.pivot.wtk. However, using a dedicated extension for WTK markup may simply promote confusion.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.