diff options
author | James Moger <james.moger@gitblit.com> | 2014-04-17 18:00:58 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-04-17 18:08:12 -0400 |
commit | cf4004e8d64399f6fc722fcb313eaaae6a65fa20 (patch) | |
tree | 795bd96caf734212b4120d6e7c3597af0f9a60d0 /src/site | |
parent | 067bb4db93544dca984363dbe728f94607ba8a5d (diff) | |
download | gitblit-cf4004e8d64399f6fc722fcb313eaaae6a65fa20.tar.gz gitblit-cf4004e8d64399f6fc722fcb313eaaae6a65fa20.zip |
Add plugin (un)install lifecycle methods
Diffstat (limited to 'src/site')
-rw-r--r-- | src/site/plugins_extensions.mkd | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/site/plugins_extensions.mkd b/src/site/plugins_extensions.mkd index 6e0e52e6..86d07291 100644 --- a/src/site/plugins_extensions.mkd +++ b/src/site/plugins_extensions.mkd @@ -19,6 +19,7 @@ import com.gitblit.manager.IProjectManager; import com.gitblit.manager.IFederationManager; import com.gitblit.manager.IPluginManager; import com.gitblit.manager.IGitblit; +import ro.fortsoft.pf4j.Version; public class ExamplePlugin extends GitblitPlugin { @@ -34,6 +35,22 @@ public class ExamplePlugin extends GitblitPlugin { IPluginManager plugins = GitblitContext.getManager(IPluginManager.class); IGitblit gitblit = GitblitContext.getManager(IGitblit.class); } + + @Override + public void stop() { + } + + @Override + public void onInstall() { + } + + @Override + public void onUpgrade(Version oldVersion) { + } + + @Override + public void onUninstall() { + } } ``` |