com.atlassian.confluence.it.plugin
Class ClasspathUploadablePlugin
java.lang.Object
com.atlassian.confluence.it.plugin.ClasspathUploadablePlugin
- All Implemented Interfaces:
- Plugin, UploadablePlugin
- Direct Known Subclasses:
- SpringComponentUploadablePlugin
public class ClasspathUploadablePlugin
- extends java.lang.Object
- implements UploadablePlugin
An uploadable plugin that can be loaded as a classpath resource via ClassLoader.getResource(String)
.
Constructor Summary |
ClasspathUploadablePlugin(java.lang.String key,
java.lang.String displayName,
java.lang.String resourceName)
Specifies a plugin to be loaded from a classpath resource. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClasspathUploadablePlugin
public ClasspathUploadablePlugin(java.lang.String key,
java.lang.String displayName,
java.lang.String resourceName)
- Specifies a plugin to be loaded from a classpath resource.
- Parameters:
key
- the key of the plugindisplayName
- the visible name of the plugin, used to verify its installationresourceName
- the path to the plugin JAR as a classpath resource
getKey
public java.lang.String getKey()
- Description copied from interface:
Plugin
- The plugin key of the plugin.
- Specified by:
getKey
in interface Plugin
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayName
in interface Plugin
- Returns:
- the full name of the plugin, used to ensure that the plugin was uploaded successfully
getFile
public java.io.File getFile()
- Specified by:
getFile
in interface UploadablePlugin
- Returns:
- the JAR file of the plugin to upload.
Copyright © 2003-2013 Atlassian. All Rights Reserved.