com.atlassian.bamboo.v2.build.agent.capability
Interface CapabilityContext

All Known Implementing Classes:
CapabilityContextImpl

public interface CapabilityContext

Allows the ability to retrieve a capability set specific to the context it is called from. Capabilty set is stored in ThreadLocal.


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
 

Method Detail

getCapabilitySet

@Nullable
ReadOnlyCapabilitySet getCapabilitySet()
Retrieves the capability set currently stored within the context, If empty the shared local (server) capabilities are returned

Returns:
ReadOnlyCapabilitySet

setCapabilitySet

void setCapabilitySet(@Nullable
                      ReadOnlyCapabilitySet capabilitySet)
Stores a specific cabability set within the ThreadLocal

Parameters:
capabilitySet -

clearCapabilitySet

void clearCapabilitySet()
Removes whatever is currently stored in thread local


getCapabilityValue

@Nullable
java.lang.String getCapabilityValue(@NotNull
                                             java.lang.String key)
Convenience method. Retrieves value of capability.

Parameters:
key -


Copyright © 2010 Atlassian. All Rights Reserved.