All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.server.Extension Maven / Gradle / Ivy

There is a newer version: 8.27.3
Show newest version
/*
 * Vaadin Framework 7
 *
 * Copyright (C) 2000-2024 Vaadin Ltd
 *
 * This program is available under Vaadin Commercial License and Service Terms.
 *
 * See  for the full
 * license.
 */

package com.vaadin.server;

/**
 * An extension is an entity that is attached to a Component or another
 * Extension and independently communicates between client and server.
 * 

* An extension can only be attached once. It is not supported to move an * extension from one target to another. *

* Extensions can use shared state and RPC in the same way as components. * * @author Vaadin Ltd * @since 7.0.0 */ public interface Extension extends ClientConnector { /** * Remove this extension from its target. After an extension has been * removed, it cannot be attached again. */ void remove(); /** * Sets the parent connector of the connector. * * This method automatically calls {@link #attach()} if the connector * becomes attached to the session. *

* This method is rarely called directly. * {@link AbstractClientConnector#addExtension(Extension)} is normally used * for adding extensions to a parent and it will call this method * implicitly. *

* * @param parent * the parent connector * @throws IllegalStateException * if a parent is given even though the connector already has a * parent */ public void setParent(ClientConnector parent); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy