java - swing editor ui for applicationContext.xml beans? -


I asked this spring forums, but I could not find any answer, and I only searched for Stakeoverflow, so sick here Try it.

I am using Spring 2.0.5. In my app I add / modify / delete the user (via UI) beans which are described in the applicationContext.xml file Beans that have to be edited, they are all exactly the same class (such as DB table crude editor, But easy to develop and develop about the code).

I am searching the web and forum and can not find any existing code. I think my need is quite normal, can someone know me some code, which I can benefit from?

If not, is there at least one way to get XML (string) from a jam bean?

Thanks in advance.

There are tools for editing the application context for eclipse, and the source code is available, so be it It may be that they start at a place.

I do not believe there is any way of achieving the definition of XML bean, for example, remember a beanfactor object that the given bean can not contain XML definition; For example, it can be autowired.

Another way might be to use a library such as parsing and manipulating the XML of the applicationContext.xml file. For example, you can easily get a particular bean definition, for example,

document.selectSingleNode ("// bean / beans [name = 'beanNameIWantToEdit']")

Then you can change properties and nodes on that node. You can select node.asXML () .

can get full XML text of that node.

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -