Update plugin-gwt-archetype to match current implementation
Update GWT plugin archetype to auto register its instance in Gerrit Change-Id: I7b1930871b21f5ae4850ee07f14cd430f9866036 Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
This commit is contained in:
parent
9abe435ba3
commit
293021e700
@ -41,8 +41,6 @@ limitations under the License.
|
|||||||
</includes>
|
</includes>
|
||||||
<archive>
|
<archive>
|
||||||
<manifestEntries>
|
<manifestEntries>
|
||||||
<Gerrit-Module>${package}.Module</Gerrit-Module>
|
|
||||||
|
|
||||||
<Implementation-Vendor>${Implementation-Vendor}</Implementation-Vendor>
|
<Implementation-Vendor>${Implementation-Vendor}</Implementation-Vendor>
|
||||||
<Implementation-URL>${Implementation-Url}</Implementation-URL>
|
<Implementation-URL>${Implementation-Url}</Implementation-URL>
|
||||||
|
|
||||||
|
@ -14,13 +14,12 @@
|
|||||||
|
|
||||||
package ${package};
|
package ${package};
|
||||||
|
|
||||||
import com.google.inject.AbstractModule;
|
|
||||||
import com.google.gerrit.extensions.webui.WebUiPlugin;
|
|
||||||
import com.google.gerrit.extensions.webui.GwtPlugin;
|
import com.google.gerrit.extensions.webui.GwtPlugin;
|
||||||
|
import com.google.gerrit.extensions.annotations.Listen;
|
||||||
|
|
||||||
class Module extends AbstractModule {
|
@Listen
|
||||||
@Override
|
public class MyExtension extends GwtPlugin {
|
||||||
protected void configure() {
|
public MyExtension() {
|
||||||
bind(WebUiPlugin.class).toInstance(new GwtPlugin("hello_gwt_plugins"));
|
super("hello_gwt_plugins");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user