Also, from what I've seen of your nifty
plugin, in order to force the injection one must do the following:
- have the plugin jar on the classpath
- pass -Xinject-listener-code to xjc
Hi all,
I followed the recommendation above, compiled the plugin found at:
http://fisheye5.cenqua.com/browse/glassfish/admin-core/xjc-plugin/src/com/sun/tools/xjc/addon/property_listener_injector/PluginImpl.java?r1=1.1&r2=1.1.2.1
and I obtained the following results.:
@XmlRootElement(name = "loaderJob")
public class LoaderJob {
// Ok, support added from the plugin ;-)
@XmlTransient
private VetoableChangeSupport support = (new
VetoableChangeSupport(this));
/**
* Sets the value of the returnCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setReturnCode(String value) {
this.returnCode = value;
/* Why didn't I get the fireXXX
methods ;-( Am I doing something wrong ? */
}
/* Ok, wrapper methods added from the plugin
;-)*/
public void addVetoableChangeListener(String param0,
VetoableChangeListener param1) {
support.addVetoableChangeListener(param0,param1);
}
public void addVetoableChangeListener(VetoableChangeListener
param0) {
support.addVetoableChangeListener(param0);
}
public void removeVetoableChangeListener(VetoableChangeListener
param0) {
support.removeVetoableChangeListener(param0);
}
public void removeVetoableChangeListener(String param0,
VetoableChangeListener param1) {
support.removeVetoableChangeListener(param0,param1);
}
}
I really need this fireXXX methods, so I
appreciate any help ;-) or some mentoring to solve that.
Thank you very much
Marcos