Marco Papini
2002-05-03 07:01:05 UTC
Hi everybody !
That's my proposal: move from MiddlegenTask the plugin configuration and
use a property file instead. The static block in MiddlegenTask will be
something like:
static {
ResourceBundle rb =
ResourceBundle.getBundle("middlegen/plugins/entitybean/middlegen-plugins");
Enumeration enum = rb.getKeys();
while (enum.hasMoreElements()) {
String pluginName = (String)enum.nextElement();
_plugins.setProperty(pluginName, rb.getString(pluginName));
}
}
And, of course, a property file named middlegen-plugins is needed, with
all the tag/class couples.
Greetings
Marco Papini
Italy
That's my proposal: move from MiddlegenTask the plugin configuration and
use a property file instead. The static block in MiddlegenTask will be
something like:
static {
ResourceBundle rb =
ResourceBundle.getBundle("middlegen/plugins/entitybean/middlegen-plugins");
Enumeration enum = rb.getKeys();
while (enum.hasMoreElements()) {
String pluginName = (String)enum.nextElement();
_plugins.setProperty(pluginName, rb.getString(pluginName));
}
}
And, of course, a property file named middlegen-plugins is needed, with
all the tag/class couples.
Greetings
Marco Papini
Italy