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

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.agent.capability.CapabilityContextImpl
All Implemented Interfaces:
CapabilityContext

public class CapabilityContextImpl
extends java.lang.Object
implements CapabilityContext


Constructor Summary
CapabilityContextImpl()
           
 
Method Summary
 void clearCapabilitySet()
          Removes whatever is currently stored in thread local
 ReadOnlyCapabilitySet getCapabilitySet()
          Retrieves the capability set currently stored within the context, If empty the shared local (server) capabilities are returned
 java.lang.String getCapabilityValue(java.lang.String key)
          Convenience method.
 void setCapabilitySet(ReadOnlyCapabilitySet capabilitySet)
          Stores a specific cabability set within the ThreadLocal
 void setCapabilitySetManager(CapabilitySetManager capabilitySetManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapabilityContextImpl

public CapabilityContextImpl()
Method Detail

getCapabilitySet

@Nullable
public ReadOnlyCapabilitySet getCapabilitySet()
Description copied from interface: CapabilityContext
Retrieves the capability set currently stored within the context, If empty the shared local (server) capabilities are returned

Specified by:
getCapabilitySet in interface CapabilityContext
Returns:
ReadOnlyCapabilitySet

setCapabilitySet

public void setCapabilitySet(@Nullable
                             ReadOnlyCapabilitySet capabilitySet)
Description copied from interface: CapabilityContext
Stores a specific cabability set within the ThreadLocal

Specified by:
setCapabilitySet in interface CapabilityContext

clearCapabilitySet

public void clearCapabilitySet()
Description copied from interface: CapabilityContext
Removes whatever is currently stored in thread local

Specified by:
clearCapabilitySet in interface CapabilityContext

getCapabilityValue

@Nullable
public java.lang.String getCapabilityValue(@NotNull
                                                    java.lang.String key)
Description copied from interface: CapabilityContext
Convenience method. Retrieves value of capability.

Specified by:
getCapabilityValue in interface CapabilityContext

setCapabilitySetManager

public void setCapabilitySetManager(CapabilitySetManager capabilitySetManager)


Copyright © 2010 Atlassian. All Rights Reserved.