public class SpringHandlerDefinitionBean extends Object implements org.springframework.beans.factory.FactoryBean<HandlerDefinition>, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
ClasspathHandlerDefinition
Constructor and Description |
---|
SpringHandlerDefinitionBean()
Initializes definition bean with assumption that application context will be injected.
|
SpringHandlerDefinitionBean(org.springframework.context.ApplicationContext applicationContext)
Initializes definition bean with given application context.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
HandlerDefinition |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setAdditionalHandlers(List<HandlerDefinition> additionalFactories)
Defines any additional handler definitions that should be used.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBeanClassLoader(ClassLoader classLoader) |
public SpringHandlerDefinitionBean()
public SpringHandlerDefinitionBean(org.springframework.context.ApplicationContext applicationContext)
applicationContext
- application contextpublic HandlerDefinition getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean<HandlerDefinition>
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<HandlerDefinition>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<HandlerDefinition>
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public void setAdditionalHandlers(List<HandlerDefinition> additionalFactories)
additionalFactories
- The extra definitions to registerSpringBeanParameterResolverFactory
,
ClasspathHandlerDefinition
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
Copyright © 2010–2022. All rights reserved.