public class ServerBean extends ServerConfig implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
| 构造器和说明 |
|---|
ServerBean() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
void |
export()
暴露服务
|
String |
getId()
getter method
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setId(String id)
setter method
|
addShutdownHook, check, createServer, destory, export, genConfigJson, genServerNode, getInterval, getIp, getMaxWorkerThreads, getMinWorkerThreads, getName, getOwner, getPort, getProtocol, getRef, getService, getWeight, isMonitor, reflectProcessor, reflectProtocolClass, setInterval, setIp, setMaxWorkerThreads, setMinWorkerThreads, setMonitor, setName, setOwner, setPort, setProtocol, setRef, setService, setWeightpublic String getId()
ServerConfig#idpublic void setId(String id)
id - the id to setServerConfig#idpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanExceptionpublic void export()
throws ClassNotFoundException,
RpcException
ClassNotFoundException - ,RpcExceptionRpcExceptionCopyright © 2015 Baifendian Corporation. All rights reserved.