org.apache.tuscany.sca.assembly
Interface ConfiguredOperation

All Superinterfaces:
Base, IntentAttachPoint, PolicySetAttachPoint
All Known Implementing Classes:
ConfiguredOperationImpl

public interface ConfiguredOperation
extends Base, PolicySetAttachPoint

Represents an Operation. Typically Operation elements are used when there is a need to apply certain facets such as intents and policysets only to a specific operation provided by a service or reference.


Method Summary
 java.lang.String getContractName()
          Returns the name of the service or reference to which this operation belongs.
 java.lang.String getName()
          Returns the name of the operation.
 void setContractName(java.lang.String contractName)
          Sets the name of the service or reference to which this operation belongs.
 void setName(java.lang.String name)
          Sets the name of the operation.
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
isUnresolved, setUnresolved
 
Methods inherited from interface org.apache.tuscany.sca.policy.PolicySetAttachPoint
getApplicablePolicySets, getPolicySets
 
Methods inherited from interface org.apache.tuscany.sca.policy.IntentAttachPoint
getRequiredIntents, getType, setType
 

Method Detail

getName

java.lang.String getName()
Returns the name of the operation.

Returns:
the name of the operation

setName

void setName(java.lang.String name)
Sets the name of the operation.

Parameters:
name - the name of the operation

getContractName

java.lang.String getContractName()
Returns the name of the service or reference to which this operation belongs. This method is particularly useful when operation elements are specified under implementation elements and it is necessary to identify which of the various services provided by the implementation is referred to by the operation element in question

Returns:
the name of the contract to which this operation belongs

setContractName

void setContractName(java.lang.String contractName)
Sets the name of the service or reference to which this operation belongs.

Parameters:
contractName - the name of the contract to which this operation belongs