|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.sca.assembly.impl.BaseImpl org.apache.tuscany.sca.assembly.impl.ExtensibleImpl org.apache.tuscany.sca.assembly.impl.ContractImpl org.apache.tuscany.sca.assembly.impl.AbstractServiceImpl org.apache.tuscany.sca.assembly.impl.ServiceImpl
public class ServiceImpl
Represents a reference.
Constructor Summary | |
---|---|
protected |
ServiceImpl()
Constructs a new service. |
Method Summary | ||
---|---|---|
java.lang.Object |
clone()
Returns a clone of the contract. |
|
java.util.List<PolicySet> |
getApplicablePolicySets()
Returns a list of policy sets defined in the domain, that are applicable to this PolicySetAttachPoint. |
|
|
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)
By default return the interface contract for the service |
|
java.util.List<PolicySet> |
getPolicySets()
Returns a list of policy sets. |
|
void |
setCallback(Callback callback)
Sets a callback definition of the bindings to use for callbacks |
|
void |
setPolicySets(java.util.List<PolicySet> policySets)
|
Methods inherited from class org.apache.tuscany.sca.assembly.impl.ContractImpl |
---|
getConfiguredOperations, getInterfaceContract, getName, getRequiredIntents, getType, isCallback, setConfiguredOperations, setInterfaceContract, setIsCallback, setName, setRequiredIntents, setType |
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 |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.IntentAttachPoint |
---|
getRequiredIntents, getType, setType |
Constructor Detail |
---|
protected ServiceImpl()
Method Detail |
---|
public java.util.List<PolicySet> getApplicablePolicySets()
PolicySetAttachPoint
getApplicablePolicySets
in interface PolicySetAttachPoint
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Contract
clone
in interface Contract
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.util.List<Binding> getBindings()
Contract
getBindings
in interface Contract
public <B> B getBinding(java.lang.Class<B> bindingClass)
Contract
getBinding
in interface Contract
B
- the binding typebindingClass
- the binding type class
public <B> B getCallbackBinding(java.lang.Class<B> bindingClass)
Contract
getCallbackBinding
in interface Contract
B
- the callback binding typebindingClass
- the callback binding type class
public java.util.List<PolicySet> getPolicySets()
PolicySetAttachPoint
getPolicySets
in interface PolicySetAttachPoint
public Callback getCallback()
Contract
getCallback
in interface Contract
public void setCallback(Callback callback)
Contract
setCallback
in interface Contract
callback
- a definition of the bindings to use for callbackspublic void setPolicySets(java.util.List<PolicySet> policySets)
public InterfaceContract getInterfaceContract(Binding binding)
getInterfaceContract
in interface Contract
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 |