|
||||||||||
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 | ||
---|---|---|
|
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. |
|
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, setInterfaceContract, setName |
Methods inherited from interface org.apache.tuscany.sca.assembly.Base |
---|
getExtensions, isUnresolved, setUnresolved |
Methods inherited from interface org.apache.tuscany.sca.policy.IntentAttachPoint |
---|
getRequiredIntents |
Methods inherited from interface org.apache.tuscany.sca.policy.PolicySetAttachPoint |
---|
getPolicySets |
Methods inherited from interface org.apache.tuscany.sca.policy.IntentAttachPoint |
---|
getRequiredIntents |
Method Detail |
---|
java.util.List<Binding> getBindings()
<B> B getBinding(java.lang.Class<B> bindingClass)
B
- the binding typebindingClass
- the binding type class
Callback getCallback()
void setCallback(Callback callback)
callback
- a definition of the bindings to use for callbacks
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |