| | |
| | | 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 { |
| | | |
| | |
| | | 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() { |
| | | } |
| | | } |
| | | ``` |
| | | |