Class ServerPluginInfoImpl
- java.lang.Object
-
- jetbrains.buildServer.web.plugins.bean.ServerPluginInfoImpl
-
- All Implemented Interfaces:
PluginInfo,ServerPluginInfo,PluginDescriptor
public class ServerPluginInfoImpl extends Object implements ServerPluginInfo
Represents all necessary information on plugin- Author:
- Eugene.Petrenko Date: 16.04.2008
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.web.openapi.PluginDescriptor
PLUGIN_RESOURCES_PATH
-
-
Constructor Summary
Constructors Constructor Description ServerPluginInfoImpl(File root, ServerPluginXml pluginXml, WebPluginResourcePathManager pathHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<File>getAgentParts()FilegetAgentPluginsRoot()PluginClassLoadingInfogetClassloadingInfo()List<PluginDependencyInfo>getDependencies()Returns plugin direct dependencies information.StringgetParameterValue(String key)Returns parameter value of parameters that was declared in teamcity-plugin.xml file.Collection<File>getPluginJars()StringgetPluginName()Name of plugin.StringgetPluginResourcesPath()returns context path to all plugin resources.StringgetPluginResourcesPath(String relativePath)Returns absolute path without web application context of the resource by plugin relative path.FilegetPluginRoot()Returns plugin base folderFilegetPluginsRoot(String pluginPartName)StringgetPluginVersion()ServerPluginXmlgetPluginXml()SpringPluginInfogetSpringPluginInfo()StringgetUUID()booleanisNodeResponsibilitiesAware()booleanisRuntimeReloadAllowed()StringtoString()
-
-
-
Constructor Detail
-
ServerPluginInfoImpl
public ServerPluginInfoImpl(@NotNull File root, @NotNull ServerPluginXml pluginXml, @NotNull WebPluginResourcePathManager pathHelper)
-
-
Method Detail
-
getPluginRoot
@NotNull public File getPluginRoot()
Description copied from interface:PluginInfoReturns plugin base folder- Specified by:
getPluginRootin interfacePluginDescriptor- Specified by:
getPluginRootin interfacePluginInfo- Returns:
- path where plugin files are located on the server.
-
getAgentParts
@NotNull public Collection<File> getAgentParts()
- Specified by:
getAgentPartsin interfaceServerPluginInfo
-
getAgentPluginsRoot
@NotNull public File getAgentPluginsRoot()
- Specified by:
getAgentPluginsRootin interfaceServerPluginInfo- Returns:
- directory that contain agent plugins
-
getPluginsRoot
@NotNull public File getPluginsRoot(@NotNull String pluginPartName)
- Specified by:
getPluginsRootin interfaceServerPluginInfo
-
getPluginJars
@NotNull public Collection<File> getPluginJars()
- Specified by:
getPluginJarsin interfaceServerPluginInfo
-
getPluginVersion
@Nullable public String getPluginVersion()
- Specified by:
getPluginVersionin interfacePluginDescriptor- Specified by:
getPluginVersionin interfacePluginInfo- Returns:
- plugin version string as written in teamcity-plugin.xml file or null
-
getParameterValue
public String getParameterValue(@NotNull String key)
Description copied from interface:PluginDescriptorReturns parameter value of parameters that was declared in teamcity-plugin.xml file.- Specified by:
getParameterValuein interfacePluginDescriptor- Parameters:
key- parameters name- Returns:
- trimmed and xml normalized parameter value if declared or null otherwise
-
getPluginXml
@NotNull public ServerPluginXml getPluginXml()
- Specified by:
getPluginXmlin interfaceServerPluginInfo
-
isNodeResponsibilitiesAware
public boolean isNodeResponsibilitiesAware()
- Specified by:
isNodeResponsibilitiesAwarein interfaceServerPluginInfo- Returns:
- true if this plugin is aware of node responsibilities and thus can be loaded by secondary nodes
-
getPluginName
@NotNull public String getPluginName()
Description copied from interface:PluginDescriptorName of plugin. The name of plugin is taken from it's root folder name- Specified by:
getPluginNamein interfacePluginDescriptor- Specified by:
getPluginNamein interfacePluginInfo- Returns:
- name of plugin
-
getPluginResourcesPath
@NotNull public String getPluginResourcesPath()
Description copied from interface:PluginDescriptorreturns context path to all plugin resources.- Specified by:
getPluginResourcesPathin interfacePluginDescriptor- Returns:
- plugin resources deployment paths, ends with '/'
-
getPluginResourcesPath
@NotNull public String getPluginResourcesPath(@NotNull String relativePath)
Description copied from interface:PluginDescriptorReturns absolute path without web application context of the resource by plugin relative path.- Specified by:
getPluginResourcesPathin interfacePluginDescriptor- Parameters:
relativePath- relative path of the file under plugin's "buildServerResources" directory- Returns:
- absolute server path
-
getSpringPluginInfo
public SpringPluginInfo getSpringPluginInfo()
- Specified by:
getSpringPluginInfoin interfacePluginInfo- Returns:
- spring context creation info
-
getClassloadingInfo
@NotNull public PluginClassLoadingInfo getClassloadingInfo()
- Specified by:
getClassloadingInfoin interfacePluginInfo
-
getDependencies
@NotNull public List<PluginDependencyInfo> getDependencies()
Description copied from interface:PluginInfoReturns plugin direct dependencies information. NOTE: Transitive dependencies not supported.- Specified by:
getDependenciesin interfacePluginInfo- Returns:
- see above
-
isRuntimeReloadAllowed
public boolean isRuntimeReloadAllowed()
- Specified by:
isRuntimeReloadAllowedin interfacePluginInfo- Returns:
- true if this plugin could be unloaded in runtime.
-
getUUID
@NotNull public String getUUID()
- Specified by:
getUUIDin interfacePluginInfo- Returns:
- UUID of parsed plugin. Is changed after each restart.
-
-