This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository nuiton-config. See https://gitlab.nuiton.org/nuiton/nuiton-config.git commit 0267486eb865e039cf07cf71299d7c83a2d29be9 Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Oct 7 18:09:05 2016 +0200 Depreciates Property change support in ApplicationConfig --- .../main/java/org/nuiton/config/ApplicationConfig.java | 17 +++++++++++++---- .../java/org/nuiton/config/SubApplicationConfig.java | 4 ++++ 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/nuiton-config/src/main/java/org/nuiton/config/ApplicationConfig.java b/nuiton-config/src/main/java/org/nuiton/config/ApplicationConfig.java index 86411da..003e481 100644 --- a/nuiton-config/src/main/java/org/nuiton/config/ApplicationConfig.java +++ b/nuiton-config/src/main/java/org/nuiton/config/ApplicationConfig.java @@ -400,12 +400,16 @@ public class ApplicationConfig { * * @see #saveUserAction * @since 1.3 + * @deprecated since 3.1, we should no more use property change support on ApplicationConfig */ + @Deprecated private boolean adjusting; /** * suport of config modification. + * @deprecated since 3.1, we should no more use property change support on ApplicationConfig */ + @Deprecated protected PropertyChangeSupport pcs = new PropertyChangeSupport(this); /** @@ -2391,33 +2395,38 @@ public class ApplicationConfig { pcs.firePropertyChange(propertyName, oldValue, newValue); } + @Deprecated public void addPropertyChangeListener(PropertyChangeListener listener) { pcs.addPropertyChangeListener(listener); } - public void addPropertyChangeListener(String propertyName, - PropertyChangeListener listener) { + @Deprecated + public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener) { pcs.addPropertyChangeListener(propertyName, listener); } + @Deprecated public void removePropertyChangeListener(PropertyChangeListener listener) { pcs.removePropertyChangeListener(listener); } - public void removePropertyChangeListener(String propertyName, - PropertyChangeListener listener) { + @Deprecated + public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener) { pcs.removePropertyChangeListener(propertyName, listener); } + @Deprecated public boolean hasListeners(String propertyName) { return pcs.hasListeners(propertyName); } + @Deprecated public PropertyChangeListener[] getPropertyChangeListeners( String propertyName) { return pcs.getPropertyChangeListeners(propertyName); } + @Deprecated public PropertyChangeListener[] getPropertyChangeListeners() { return pcs.getPropertyChangeListeners(); } diff --git a/nuiton-config/src/main/java/org/nuiton/config/SubApplicationConfig.java b/nuiton-config/src/main/java/org/nuiton/config/SubApplicationConfig.java index 2d9590e..2d19bcd 100644 --- a/nuiton-config/src/main/java/org/nuiton/config/SubApplicationConfig.java +++ b/nuiton-config/src/main/java/org/nuiton/config/SubApplicationConfig.java @@ -158,6 +158,7 @@ public class SubApplicationConfig extends ApplicationConfig { return result; } + @Deprecated @Override protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (propertyName.startsWith(getPrefix())) { @@ -166,16 +167,19 @@ public class SubApplicationConfig extends ApplicationConfig { } // else not fire event } + @Deprecated @Override public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener) { getParent().addPropertyChangeListener(getPrefix() + propertyName, listener); } + @Deprecated @Override public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener) { getParent().removePropertyChangeListener(getPrefix() + propertyName, listener); } + @Deprecated @Override public boolean hasListeners(String propertyName) { return getParent().hasListeners(getPrefix() + propertyName); -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.