|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.spi.model.ModelObject
org.apache.tuscany.spi.model.ServiceContract<T>
public abstract class ServiceContract<T>
Base class representing service contract information
Field Summary | |
---|---|
protected Class<?> |
callbackClass
|
protected String |
callbackName
|
protected Map<String,Operation<T>> |
callbackOperations
|
protected String |
dataBinding
|
protected InteractionScope |
interactionScope
|
protected Class<?> |
interfaceClass
|
protected String |
interfaceName
|
protected Map<String,Object> |
metaData
|
protected Map<String,Operation<T>> |
operations
|
protected boolean |
remotable
|
Constructor Summary | |
---|---|
protected |
ServiceContract()
|
protected |
ServiceContract(Class<?> interfaceClass)
|
protected |
ServiceContract(String interfaceName)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
Class<?> |
getCallbackClass()
Returns the name of the callback service |
String |
getCallbackName()
Returns the name of the callback or null if the contract is unidirectional |
Map<String,Operation<T>> |
getCallbackOperations()
|
String |
getDataBinding()
|
InteractionScope |
getInteractionScope()
Returns the service interaction scope |
Class<?> |
getInterfaceClass()
Returns the class used to represent the service contract |
String |
getInterfaceName()
Returns the interface name for the contract |
Map<String,Object> |
getMetaData()
Returns a map of metadata key to value mappings for the operation. |
Map<String,Operation<T>> |
getOperations()
|
int |
hashCode()
|
boolean |
isRemotable()
|
void |
setCallbackClass(Class<?> callbackClass)
|
void |
setCallbackName(String callbackName)
Sets the name of the callback service |
void |
setCallbackOperations(Map<String,Operation<T>> callbacksOperations)
|
void |
setDataBinding(String dataBinding)
|
void |
setInteractionScope(InteractionScope interactionScope)
Sets the service interaction scope |
void |
setInterfaceClass(Class<?> interfaceClass)
Sets the class used to represent the service contract |
void |
setInterfaceName(String interfaceName)
Sets the interface name for the contract |
void |
setMetaData(String key,
Object val)
Adds metadata associated with the operation. |
void |
setOperations(Map<String,Operation<T>> operations)
|
void |
setRemotable(boolean remotable)
|
String |
toString()
|
Methods inherited from class org.apache.tuscany.spi.model.ModelObject |
---|
getExtensions |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected InteractionScope interactionScope
protected boolean remotable
protected Class<?> interfaceClass
protected String interfaceName
protected String callbackName
protected Class<?> callbackClass
protected Map<String,Operation<T>> operations
protected Map<String,Operation<T>> callbackOperations
protected String dataBinding
protected Map<String,Object> metaData
Constructor Detail |
---|
protected ServiceContract()
protected ServiceContract(Class<?> interfaceClass)
protected ServiceContract(String interfaceName)
Method Detail |
---|
public String getInterfaceName()
public void setInterfaceName(String interfaceName)
public Class<?> getInterfaceClass()
public void setInterfaceClass(Class<?> interfaceClass)
public InteractionScope getInteractionScope()
public void setInteractionScope(InteractionScope interactionScope)
public boolean isRemotable()
public void setRemotable(boolean remotable)
remotable
- the remotable to setpublic String getCallbackName()
public void setCallbackName(String callbackName)
public Class<?> getCallbackClass()
public void setCallbackClass(Class<?> callbackClass)
public Map<String,Operation<T>> getOperations()
public void setOperations(Map<String,Operation<T>> operations)
public Map<String,Operation<T>> getCallbackOperations()
public void setCallbackOperations(Map<String,Operation<T>> callbacksOperations)
public String getDataBinding()
public void setDataBinding(String dataBinding)
public Map<String,Object> getMetaData()
public void setMetaData(String key, Object val)
key
- the metadata keyval
- the metadata valuepublic boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |