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 java.lang.Object
implements CapabilityDefaultsHelper


Field Summary
 
Fields inherited from interface com.atlassian.bamboo.v2.build.agent.capability.CapabilityDefaultsHelper
CAPABILITY_BUILDER_PREFIX, CAPABILITY_BUILDER_TYPE
 
Constructor Summary
AbstractFileCapabilityDefaultsHelper()
           
 
Method Summary
 CapabilitySet addDefaultCapabilities(CapabilitySet capabilitySet)
          Adds default Capabilities for this module.
protected  Capability createCapability(java.io.File content)
           
protected abstract  java.lang.String getCapabilityKey()
           
protected  java.lang.String getEnvHome()
           
protected abstract  java.lang.String getExecutableName()
           
protected  java.lang.String getPosixHome()
           
protected  com.google.common.base.Predicate<java.io.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
                                               java.io.File content)

getExecutableName

@NotNull
protected abstract java.lang.String getExecutableName()

getCapabilityKey

@NotNull
protected abstract java.lang.String getCapabilityKey()

getEnvHome

@Nullable
protected java.lang.String getEnvHome()

getPosixHome

@Nullable
protected java.lang.String getPosixHome()

getValidityPredicate

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


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.