类 ServiceConfig<T>
- java.lang.Object
-
- com.alibaba.dubbo.config.AbstractConfig
-
- com.alibaba.dubbo.config.AbstractMethodConfig
-
- com.alibaba.dubbo.config.AbstractInterfaceConfig
-
- com.alibaba.dubbo.config.AbstractServiceConfig
-
- com.alibaba.dubbo.config.ServiceConfig<T>
-
- 所有已实现的接口:
Serializable
- 直接已知子类:
ServiceBean
public class ServiceConfig<T> extends AbstractServiceConfig
ServiceConfig- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 ServiceConfig()
ServiceConfig(Service service)
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 void
export()
List<URL>
getExportedUrls()
String
getGeneric()
String
getGroup()
String
getInterface()
Class<?>
getInterfaceClass()
List<MethodConfig>
getMethods()
String
getPath()
ProviderConfig
getProvider()
List<ProviderConfig>
getProviders()
已过时。Replace to getProtocols()T
getRef()
String
getUniqueServiceName()
String
getVersion()
boolean
isExported()
boolean
isUnexported()
void
setGeneric(String generic)
void
setInterface(Class<?> interfaceClass)
void
setInterface(String interfaceName)
void
setInterfaceClass(Class<?> interfaceClass)
已过时。void
setMethods(List<? extends MethodConfig> methods)
void
setMock(Boolean mock)
void
setMock(String mock)
void
setPath(String path)
void
setProvider(ProviderConfig provider)
void
setProviders(List<ProviderConfig> providers)
已过时。Replace to setProtocols()void
setRef(T ref)
URL
toUrl()
List<URL>
toUrls()
void
unexport()
-
从类继承的方法 com.alibaba.dubbo.config.AbstractServiceConfig
getAccesslog, getDelay, getDocument, getExecutes, getExport, getFilter, getListener, getProtocol, getProtocols, getSerialization, getTag, getToken, getWarmup, getWeight, isDeprecated, isDynamic, isRegister, setAccesslog, setAccesslog, setDelay, setDeprecated, setDocument, setDynamic, setExecutes, setExport, setGroup, setListener, setProtocol, setProtocols, setRegister, setSerialization, setTag, setToken, setToken, setVersion, setWarmup, setWeight
-
从类继承的方法 com.alibaba.dubbo.config.AbstractInterfaceConfig
getApplication, getCallbacks, getCluster, getConnections, getLayer, getLocal, getModule, getMonitor, getOnconnect, getOndisconnect, getOwner, getProxy, getRegistries, getRegistry, getScope, getStub, setApplication, setCallbacks, setCluster, setConnections, setFilter, setLayer, setLocal, setLocal, setModule, setMonitor, setMonitor, setOnconnect, setOndisconnect, setOwner, setProxy, setRegistries, setRegistry, setScope, setStub, setStub
-
从类继承的方法 com.alibaba.dubbo.config.AbstractMethodConfig
getActives, getCache, getForks, getLoadbalance, getMerger, getMock, getParameters, getRetries, getSent, getTimeout, getValidation, isAsync, setActives, setAsync, setCache, setForks, setLoadbalance, setMerger, setParameters, setRetries, setSent, setTimeout, setValidation
-
从类继承的方法 com.alibaba.dubbo.config.AbstractConfig
getId, setId, toString
-
-
-
-
构造器详细资料
-
ServiceConfig
public ServiceConfig()
-
ServiceConfig
public ServiceConfig(Service service)
-
-
方法详细资料
-
toUrl
public URL toUrl()
-
isExported
@Parameter(excluded=true) public boolean isExported()
-
isUnexported
@Parameter(excluded=true) public boolean isUnexported()
-
export
public void export()
-
unexport
public void unexport()
-
getInterfaceClass
public Class<?> getInterfaceClass()
-
setInterfaceClass
public void setInterfaceClass(Class<?> interfaceClass)
已过时。- 参数:
interfaceClass
-- 另请参阅:
setInterface(Class)
-
getInterface
public String getInterface()
-
setInterface
public void setInterface(String interfaceName)
-
setInterface
public void setInterface(Class<?> interfaceClass)
-
getRef
public T getRef()
-
setRef
public void setRef(T ref)
-
getPath
@Parameter(excluded=true) public String getPath()
-
setPath
public void setPath(String path)
-
getMethods
public List<MethodConfig> getMethods()
-
setMethods
public void setMethods(List<? extends MethodConfig> methods)
-
getProvider
public ProviderConfig getProvider()
-
setProvider
public void setProvider(ProviderConfig provider)
-
getGeneric
public String getGeneric()
-
setGeneric
public void setGeneric(String generic)
-
setMock
public void setMock(Boolean mock)
- 覆盖:
setMock
在类中AbstractMethodConfig
-
setMock
public void setMock(String mock)
- 覆盖:
setMock
在类中AbstractMethodConfig
-
getProviders
@Deprecated public List<ProviderConfig> getProviders()
已过时。Replace to getProtocols()
-
setProviders
@Deprecated public void setProviders(List<ProviderConfig> providers)
已过时。Replace to setProtocols()
-
getUniqueServiceName
@Parameter(excluded=true) public String getUniqueServiceName()
-
getVersion
public String getVersion()
- 覆盖:
getVersion
在类中AbstractServiceConfig
-
getGroup
public String getGroup()
- 覆盖:
getGroup
在类中AbstractServiceConfig
-
-