Extend SwiXML to remove need for backing object

Andy Depue <[email protected]>
Newsgroups gmane.comp.embedded.carlsbad-cubes
Organization Marathon Computer Systems
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
  I'm attempting to create a general GUI framework by combining SwiXML with 
Spring (see http://www.springframework.org ).  I would like to perform this 
integration without having to create a custom version of SwiXML, but I'm 
finding it rather difficult.  Primarily, I am attempting to replace the 
SwinEngine backing object (the user supplied "client" object that is the 
recipient for controls and the provider of actions) with a Spring BeanFactory 
instead.  However, SwiXML is "hardcoded" to use introspection for looking up 
Actions.  In other words, the code that performs this functionality is 
embedded within a private method in Parser (applyAttributes).  Moreover, even 
if Parser could be extended, SwingEngine holds a private reference to the 
Parser with no way for me to replace that private reference with my own 
Parser instance.  My only option would be to overload the actual "render" and 
"insert" methods in SwingEngine, but I feel like that would make my solution 
too brittle (if a future version of SwiXML expanded the functionality of 
these methods, my versions of them would become obsolete).  I would like to 
extend SwiXML so that it looks up Actions via a "getBean" call on a Spring 
BeanFactory instead of introspection against the client backing object.  Any 
ideas?

  Thanks,
    Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFArN6HdgQy3TUmt38RAiEoAJ9yKoNEUg07LRH1/yEgOywPWIdrJACfVCHQ
XM2rUc4itVcv1iJ9LNMZi0I=
=ma9t
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.