summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/AbstractComponent.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-09-05 19:28:23 +0300
committerArtur Signell <artur@vaadin.com>2012-09-05 19:45:50 +0300
commit1d0c96de9595c243d88471476d21e5f248be63f7 (patch)
tree878aac90f8523d9149750f0d9a1aeaa07a52a451 /server/src/com/vaadin/ui/AbstractComponent.java
parent9e84f385ce370909719c62ac539b3181442116d6 (diff)
downloadvaadin-framework-1d0c96de9595c243d88471476d21e5f248be63f7.tar.gz
vaadin-framework-1d0c96de9595c243d88471476d21e5f248be63f7.zip
Deprecated EventRouter with a message that it will be replaced before 7.0.0 (#8640)
Diffstat (limited to 'server/src/com/vaadin/ui/AbstractComponent.java')
-rw-r--r--server/src/com/vaadin/ui/AbstractComponent.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/AbstractComponent.java b/server/src/com/vaadin/ui/AbstractComponent.java
index 85938c4fe3..09b471cc36 100644
--- a/server/src/com/vaadin/ui/AbstractComponent.java
+++ b/server/src/com/vaadin/ui/AbstractComponent.java
@@ -66,7 +66,11 @@ public abstract class AbstractComponent extends AbstractClientConnector
/**
* The EventRouter used for the event model.
+ *
+ * @deprecated The EventRouter will be replaced by an EventRouter which does
+ * not use reflection in Vaadin 7.0.0. See #8640.
*/
+ @Deprecated
private EventRouter eventRouter = null;
/**
@@ -732,7 +736,10 @@ public abstract class AbstractComponent extends AbstractClientConnector
* the activation method.
*
* @since 6.2
+ * @deprecated The EventRouter will be replaced by an EventRouter which does
+ * not use reflection in Vaadin 7.0.0. See #8640.
*/
+ @Deprecated
protected void addListener(String eventIdentifier, Class<?> eventType,
Object target, Method method) {
if (eventRouter == null) {
@@ -817,8 +824,12 @@ public abstract class AbstractComponent extends AbstractClientConnector
* the object instance who owns the activation method.
* @param method
* the activation method.
+ *
+ * @deprecated The EventRouter will be replaced by an EventRouter which does
+ * not use reflection in Vaadin 7.0.0. See #8640.
*/
@Override
+ @Deprecated
public void addListener(Class<?> eventType, Object target, Method method) {
if (eventRouter == null) {
eventRouter = new EventRouter();
@@ -859,8 +870,11 @@ public abstract class AbstractComponent extends AbstractClientConnector
* the object instance who owns the activation method.
* @param methodName
* the name of the activation method.
+ * @deprecated The EventRouter will be replaced by an EventRouter which does
+ * not use reflection in Vaadin 7.0.0. See #8640.
*/
@Override
+ @Deprecated
public void addListener(Class<?> eventType, Object target, String methodName) {
if (eventRouter == null) {
eventRouter = new EventRouter();
@@ -911,8 +925,11 @@ public abstract class AbstractComponent extends AbstractClientConnector
* @param method
* the method owned by <code>target</code> that's registered to
* listen to events of type <code>eventType</code>.
+ * @deprecated The EventRouter will be replaced by an EventRouter which does
+ * not use reflection in Vaadin 7.0.0. See #8640.
*/
@Override
+ @Deprecated
public void removeListener(Class<?> eventType, Object target, Method method) {
if (eventRouter != null) {
eventRouter.removeListener(eventType, target, method);