public class ServiceFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<Registration>, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Constructor and Description |
---|
ServiceFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
afterPropertiesSet
|
void |
destroy()
destroy
|
Registration |
getObject()
getObject
|
Class<? extends Registration> |
getObjectType()
getObjectType
|
boolean |
isSingleton()
isSingleton
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setInterfaces(Class<?>[] serviceInterfaces)
setInterfaces
|
void |
setServiceProperties(Map<String,String> serviceProperties)
setServiceProperties
|
void |
setServiceRegistry(ServiceRegistry serviceRegistry)
setServiceRegistry
|
void |
setTarget(Object target)
setTarget
|
void |
setTargetBeanName(String targetBeanName)
setTargetBeanName
|
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
public void setTargetBeanName(String targetBeanName)
setTargetBeanName
targetBeanName
- a String
object.public void setInterfaces(Class<?>[] serviceInterfaces)
setInterfaces
serviceInterfaces
- an array of Class
objects.public void setServiceProperties(Map<String,String> serviceProperties)
setServiceProperties
serviceInterfaces
- an array of Class
objects.public void setServiceRegistry(ServiceRegistry serviceRegistry)
setServiceRegistry
serviceRegistry
- a ServiceRegistry
object.public void afterPropertiesSet() throws Exception
afterPropertiesSet
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
- if any.public void destroy() throws Exception
destroy
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
- if any.public Registration getObject() throws Exception
getObject
getObject
in interface org.springframework.beans.factory.FactoryBean<Registration>
Registration
object.Exception
- if any.public Class<? extends Registration> getObjectType()
getObjectType
getObjectType
in interface org.springframework.beans.factory.FactoryBean<Registration>
Class
object.public boolean isSingleton()
isSingleton
isSingleton
in interface org.springframework.beans.factory.FactoryBean<Registration>
Copyright © 2018. All rights reserved.