public abstract class AbstractContractFactoryBean extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.FactoryBean, org.springframework.context.ApplicationContextAware
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
apiType
way to create factory bean.
|
protected org.springframework.context.ApplicationContext |
applicationContext
spring context
|
protected String |
beanId
bean id
|
protected BindingAdapterFactory |
bindingAdapterFactory
binding adapter factory
|
protected BindingConverterFactory |
bindingConverterFactory
binding converter factory
|
protected List<Binding> |
bindings
bindings
|
protected String |
documentEncoding
document encoding
|
protected List<org.springframework.beans.factory.config.TypedStringValue> |
elements
xml elements
|
protected Class<?> |
interfaceClass
interface class type
|
protected String |
interfaceType
interface class name
|
protected String |
repeatReferLimit
repeat times
|
protected SofaRuntimeContext |
sofaRuntimeContext
sofa runtime context
|
protected String |
uniqueId
unique id
|
| Constructor and Description |
|---|
AbstractContractFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected void |
dealWithbindingConverterNotExist(String tagName) |
protected abstract void |
doAfterPropertiesSet() |
String |
getBeanId() |
List<Binding> |
getBindings() |
Class<?> |
getInterfaceClass() |
String |
getInterfaceType() |
boolean |
isApiType() |
protected abstract boolean |
isInBinding()
is in binding or not
|
boolean |
isSingleton() |
protected List<Binding> |
parseBindings(List<Element> parseElements,
org.springframework.context.ApplicationContext appContext,
boolean isInBinding) |
void |
setApiType(boolean apiType) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBeanId(String beanId) |
void |
setBindings(List<Binding> bindings) |
void |
setDocumentEncoding(String documentEncoding) |
void |
setElements(List<org.springframework.beans.factory.config.TypedStringValue> elements) |
void |
setInterfaceClass(Class interfaceType) |
void |
setInterfaceType(String interfaceType) |
protected abstract void |
setProperties(BindingConverterContext bindingConverterContext) |
void |
setRepeatReferLimit(String repeatReferLimit) |
void |
setUniqueId(String uniqueId) |
protected String beanId
protected String uniqueId
protected String interfaceType
protected Class<?> interfaceClass
@Autowired protected SofaRuntimeContext sofaRuntimeContext
protected List<org.springframework.beans.factory.config.TypedStringValue> elements
protected org.springframework.context.ApplicationContext applicationContext
protected String documentEncoding
protected String repeatReferLimit
@Autowired protected BindingConverterFactory bindingConverterFactory
@Autowired protected BindingAdapterFactory bindingAdapterFactory
protected boolean apiType
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected List<Binding> parseBindings(List<Element> parseElements, org.springframework.context.ApplicationContext appContext, boolean isInBinding)
protected void dealWithbindingConverterNotExist(String tagName)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic Class<?> getInterfaceClass()
public void setInterfaceClass(Class interfaceType)
public void setUniqueId(String uniqueId)
public void setInterfaceType(String interfaceType)
public String getInterfaceType()
public void setElements(List<org.springframework.beans.factory.config.TypedStringValue> elements)
public void setDocumentEncoding(String documentEncoding)
public void setRepeatReferLimit(String repeatReferLimit)
public String getBeanId()
public void setBeanId(String beanId)
public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBeanpublic boolean isApiType()
public void setApiType(boolean apiType)
protected abstract boolean isInBinding()
protected abstract void doAfterPropertiesSet()
throws Exception
Exceptionprotected abstract void setProperties(BindingConverterContext bindingConverterContext)
Copyright © 2021. All rights reserved.