public interface Contract
| Modifier and Type | Method and Description |
|---|---|
<T extends Binding> |
addBinding(Set<T> bindings)
add binding object, Contract supports multiple binding
|
<T extends Binding> |
addBinding(T binding)
add binding object, Contract supports multiple binding
|
Binding |
getBinding(BindingType bindingType)
get binding object by binding type
|
<T extends Binding> |
getBindings()
get supported binding set
|
InterfaceMode |
getInterfaceMode()
get interface mode
|
Class<?> |
getInterfaceType()
get interface type
|
Map<String,String> |
getProperty()
get all properties
|
String |
getProperty(String key)
get property
|
String |
getUniqueId()
get unique id, to support distribute service from same interface
|
boolean |
hasBinding()
has binding or not
|
Class<?> getInterfaceType()
boolean hasBinding()
<T extends Binding> Set<T> getBindings()
Binding getBinding(BindingType bindingType)
bindingType - binding typeString getUniqueId()
String getProperty(String key)
key - property keyInterfaceMode getInterfaceMode()
<T extends Binding> void addBinding(T binding)
binding - binding objectCopyright © 2021. All rights reserved.