com.atlassian.plugin.repositories
Class FilePluginInstaller

java.lang.Object
  extended by com.atlassian.plugin.repositories.FilePluginInstaller
All Implemented Interfaces:
PluginInstaller

public class FilePluginInstaller
extends java.lang.Object
implements PluginInstaller

Simple implementation of a PluginInstaller which writes plugin artifact to a specified directory.

See Also:
PluginInstaller

Constructor Summary
FilePluginInstaller(java.io.File directory)
           
 
Method Summary
 void installPlugin(java.lang.String key, PluginArtifact pluginArtifact)
          If there is an existing JAR with the same filename, it is replaced.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePluginInstaller

public FilePluginInstaller(java.io.File directory)
Parameters:
directory - where plugin JARs will be installed.
Method Detail

installPlugin

public void installPlugin(java.lang.String key,
                          PluginArtifact pluginArtifact)
If there is an existing JAR with the same filename, it is replaced.

Specified by:
installPlugin in interface PluginInstaller
Throws:
java.lang.RuntimeException - if there was an exception reading or writing files.


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.