com.atlassian.bamboo.v2.build.agent.capability
Class AbstractFileCapabilityDefaultsHelper

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.agent.capability.AbstractFileCapabilityDefaultsHelper
All Implemented Interfaces:
BambooPluginModule, CapabilityDefaultsHelper
Direct Known Subclasses:
AbstractHomeDirectoryCapabilityDefaultsHelper, AbstractPhpUnitCapabilityDefaultsHelper

public abstract class AbstractFileCapabilityDefaultsHelper
extends Object
implements CapabilityDefaultsHelper


Field Summary
 
Fields inherited from interface com.atlassian.bamboo.v2.build.agent.capability.CapabilityDefaultsHelper
CAPABILITY_AGENT_ENVIRONMENT_PREFIX, CAPABILITY_BUILDER_PREFIX, CAPABILITY_BUILDER_TYPE
 
Constructor Summary
AbstractFileCapabilityDefaultsHelper()
           
 
Method Summary
 CapabilitySet addDefaultCapabilities(CapabilitySet capabilitySet)
          Adds default Capabilities for this module.
protected  Capability createCapability(File content)
           
protected abstract  String getCapabilityKey()
           
protected  String getEnvHome()
           
protected abstract  String getExecutableName()
           
protected  String getPosixHome()
           
protected  com.google.common.base.Predicate<File> getValidityPredicate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFileCapabilityDefaultsHelper

public AbstractFileCapabilityDefaultsHelper()
Method Detail

addDefaultCapabilities

@NotNull
public CapabilitySet addDefaultCapabilities(@NotNull
                                                    CapabilitySet capabilitySet)
Description copied from interface: CapabilityDefaultsHelper
Adds default Capabilities for this module. Used during auto-detecting server capabilities.

Specified by:
addDefaultCapabilities in interface CapabilityDefaultsHelper
Parameters:
capabilitySet - to add the capability to
Returns:
the supplied capabilitySet with the new capabilities included if found, else the given capabilitySet

createCapability

@Nullable
protected Capability createCapability(@NotNull
                                               File content)

getExecutableName

@NotNull
protected abstract String getExecutableName()

getCapabilityKey

@NotNull
protected abstract String getCapabilityKey()

getEnvHome

@Nullable
protected String getEnvHome()

getPosixHome

@Nullable
protected String getPosixHome()

getValidityPredicate

@Nullable
protected com.google.common.base.Predicate<File> getValidityPredicate()


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.