|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Contract
Represents a contract. A contract can be either a service or a reference.
Method Summary | ||
---|---|---|
java.lang.Object |
clone()
Returns a clone of the contract. |
|
|
getBinding(java.lang.Class<B> bindingClass)
Returns a binding of the specified type or null if there is no such binding configured on this contract. |
|
java.util.List<Binding> |
getBindings()
Returns the bindings supported by this contract. |
|
Callback |
getCallback()
Returns a callback definition of the bindings to use for callbacks. |
|
|
getCallbackBinding(java.lang.Class<B> bindingClass)
Returns a callback binding of the specified type or null if there is no such callback binding configured on this contract. |
|
InterfaceContract |
getInterfaceContract(Binding binding)
Returns the interface contract given a binding. |
|
void |
setCallback(Callback callback)
Sets a callback definition of the bindings to use for callbacks |
Methods inherited from interface org.apache.tuscany.sca.assembly.AbstractContract |
---|
getInterfaceContract, getName, isCallback, setInterfaceContract, setIsCallback, setName |
Methods inherited from interface org.apache.tuscany.sca.assembly.Base |
---|
isUnresolved, setUnresolved |
Methods inherited from interface org.apache.tuscany.sca.assembly.Extensible |
---|
getExtensions |
Methods inherited from interface org.apache.tuscany.sca.assembly.OperationsConfigurator |
---|
getConfiguredOperations |
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 |
---|
java.util.List<Binding> getBindings()
<B> B getBinding(java.lang.Class<B> bindingClass)
B
- the binding typebindingClass
- the binding type class
<B> B getCallbackBinding(java.lang.Class<B> bindingClass)
B
- the callback binding typebindingClass
- the callback binding type class
Callback getCallback()
void setCallback(Callback callback)
callback
- a definition of the bindings to use for callbacksjava.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
InterfaceContract getInterfaceContract(Binding binding)
binding
- the binding for which the interface contract is required
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |