]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add a way for an extension to add itself to a connector (#6690)
authorLeif Åstrand <leif@vaadin.com>
Sat, 9 Jun 2012 12:59:46 +0000 (15:59 +0300)
committerLeif Åstrand <leif@vaadin.com>
Sat, 9 Jun 2012 12:59:46 +0000 (15:59 +0300)
src/com/vaadin/terminal/AbstractExtension.java

index 35123bc488574320a62b2d7cf5c3d601fd169fe2..6abc41ec1532ab8a49916d2469bbd55f44e7c294 100644 (file)
@@ -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<? extends ClientConnector> acceptedParentType = getAcceptedParentType();