Re: [Figleaf-developer] Code refactoring
Status: Alpha
Brought to you by:
steckman
|
From: Greg S. <ste...@on...> - 2004-07-03 21:41:37
|
sam...@ma... wrote: >A quick question. I can see that you directly run the SwingView - does it make >sense to move the run method into the Viewer interface, or at least move it into >a RunnableViewer interface? That would make a Bootstrapper more robust (as it >currently stands, if the UI mechanism doesn't implement run they'll be a >MethodNotFoundException). > >sam >http://www.magpiebrain.com/ > > > > > The bootstrapper isn't directly tied to the viewer at all. I thought the bootstrapper could also be used to run things other than a viewer. For instance, by defining a "Server" bean in the config file and then using "-bean Server" on the commandline the bootstrapper would run a server. The only limitation is that the bean specified with -bean must implement Runnable. Greg |