Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Can't use PropertyChangeListeners generated listener #27

Open
glassfishrobot opened this issue Sep 14, 2010 · 4 comments
Open

Can't use PropertyChangeListeners generated listener #27

glassfishrobot opened this issue Sep 14, 2010 · 4 comments

Comments

@glassfishrobot
Copy link
Contributor

Hi,

I want to use this plugin, but when i use it with command line argument
'-Xinject-listener-code', generated beans aren't generated with
PropertyChangeListeners butlListeners are generated with VetoableChangeListeners.

Issue can be fixed if you add the choice to generate PropertyChangeListeners by
default or with a command argument.

Thanks

Environment

Operating System: All
Platform: All

Affected Versions

[current]

@glassfishrobot
Copy link
Contributor Author

Reported by tibobd

@glassfishrobot
Copy link
Contributor Author

Was assigned to lexi

@glassfishrobot
Copy link
Contributor Author

mwise said:
With org.jvnet.jaxb2-commons property-listener-injector v1.1-SNAPSHOT
you have this option available, it needs to go in your bindings.xjb file. See below:-

<?xml version="1.0" encoding ="UTF-8"?>
<jaxb:bindings
    schemaLocation="po.xsd"
	xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" 	xmlns:li="http://jaxb.dev.java.net/plugin/listener-injector"
    version="2.1"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"> 
  <jaxb:bindings node="/xs:schema">
    <li:listener>java.beans.PropertyChangeListener</li:listener>
  </jaxb:bindings>
</jaxb:bindings>

@glassfishrobot
Copy link
Contributor Author

This issue was imported from java.net JIRA JAXB2_COMMONS-27

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant