From: Leif Åstrand Date: Sat, 9 Jun 2012 12:59:46 +0000 (+0300) Subject: Add a way for an extension to add itself to a connector (#6690) X-Git-Tag: 7.0.0.alpha3~116^2~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bb3fe5acb453b4a4ce14d1c1b54efdcf67f06d97;p=vaadin-framework.git Add a way for an extension to add itself to a connector (#6690) --- diff --git a/src/com/vaadin/terminal/AbstractExtension.java b/src/com/vaadin/terminal/AbstractExtension.java index 35123bc488..6abc41ec15 100644 --- a/src/com/vaadin/terminal/AbstractExtension.java +++ b/src/com/vaadin/terminal/AbstractExtension.java @@ -13,6 +13,10 @@ public abstract class AbstractExtension extends AbstractClientConnector return ClientConnector.class; } + protected void addExtensionTo(AbstractClientConnector parent) { + parent.addExtension(this); + } + @Override public void setParent(ClientConnector parent) { Class acceptedParentType = getAcceptedParentType();