|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tuscany.sca.assembly.impl.BaseImpl
org.apache.tuscany.sca.assembly.impl.ExtensibleImpl
org.apache.tuscany.sca.assembly.impl.ContractImpl
public class ContractImpl
Implementation of a Contract.
| Constructor Summary | |
|---|---|
protected |
ContractImpl()
Constructs a new contract. |
| Method Summary | |
|---|---|
java.util.List<ConfiguredOperation> |
getConfiguredOperations()
|
InterfaceContract |
getInterfaceContract()
Returns the interface contract defining the interface and callback interface for the contract. |
java.lang.String |
getName()
Returns the name of the contract. |
java.util.List<Intent> |
getRequiredIntents()
Returns a list of policy intents. |
IntentAttachPointType |
getType()
Returns the type of the attach point such as a BindingType or an ImplementationType and so on |
boolean |
isCallback()
Returns true if this contract is a reference or service created internally to handle a callback interface of another contract, false otherwise. |
void |
setConfiguredOperations(java.util.List<ConfiguredOperation> configuredOperations)
|
void |
setInterfaceContract(InterfaceContract interfaceContract)
Sets the interface contract defining the interface and callback interface for the contract. |
void |
setIsCallback(boolean isCallback)
Sets a flag indicating whether this is a callback contract. |
void |
setName(java.lang.String name)
Sets the name of the contract. |
void |
setRequiredIntents(java.util.List<Intent> intents)
|
void |
setType(IntentAttachPointType type)
Sets the type of the attach point such as a BindingType or an ImplementationType and so on |
| Methods inherited from class org.apache.tuscany.sca.assembly.impl.ExtensibleImpl |
|---|
getExtensions |
| Methods inherited from class org.apache.tuscany.sca.assembly.impl.BaseImpl |
|---|
isUnresolved, setUnresolved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.tuscany.sca.assembly.Base |
|---|
isUnresolved, setUnresolved |
| Methods inherited from interface org.apache.tuscany.sca.assembly.Extensible |
|---|
getExtensions |
| Constructor Detail |
|---|
protected ContractImpl()
| Method Detail |
|---|
public java.lang.String getName()
AbstractContract
getName in interface AbstractContractpublic void setName(java.lang.String name)
AbstractContract
setName in interface AbstractContractname - the name of the contractpublic InterfaceContract getInterfaceContract()
AbstractContract
getInterfaceContract in interface AbstractContractpublic void setInterfaceContract(InterfaceContract interfaceContract)
AbstractContract
setInterfaceContract in interface AbstractContractinterfaceContract - the interface contractpublic java.util.List<Intent> getRequiredIntents()
IntentAttachPoint
getRequiredIntents in interface IntentAttachPointpublic boolean isCallback()
AbstractContract
isCallback in interface AbstractContractpublic void setIsCallback(boolean isCallback)
AbstractContract
setIsCallback in interface AbstractContractisCallback - true for a callback contract, false otherwisepublic IntentAttachPointType getType()
IntentAttachPoint
getType in interface IntentAttachPointpublic void setType(IntentAttachPointType type)
IntentAttachPoint
setType in interface IntentAttachPointpublic void setRequiredIntents(java.util.List<Intent> intents)
public java.util.List<ConfiguredOperation> getConfiguredOperations()
getConfiguredOperations in interface OperationsConfiguratorpublic void setConfiguredOperations(java.util.List<ConfiguredOperation> configuredOperations)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||