View Javadoc

1   package com.atlassian.plugin.manager;
2   
3   import com.atlassian.plugin.PluginArtifact;
4   import com.atlassian.plugin.PluginInstaller;
5   
6   /**
7    * Simple implementation of {@link PluginInstaller} that throws an exception if called
8    *
9    * @since 2.5.0
10   */
11  class UnsupportedPluginInstaller implements PluginInstaller
12  {
13      public void installPlugin(String key, PluginArtifact pluginArtifact)
14      {
15          throw new UnsupportedOperationException("Dynamic plugin installation is not supported");
16      }
17  }