public class HandlerDefinitionFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<HandlerDefinition>, org.springframework.beans.factory.BeanClassLoaderAware
FactoryBean that creates a HandlerDefinition using configured HandlerDefinition and
HandlerEnhancerDefinition) beans (e.g. those configured in a Spring Application Context) and complements those
found using a service loader on the Bean Class Loader.
This bean is to be used from a configuration file that auto wires the other {@link HandlerDefinition} and {@link HandlerEnhancerDefinition} beans from the Application Context.
| Constructor and Description |
|---|
HandlerDefinitionFactoryBean(List<HandlerDefinition> definitions,
List<HandlerEnhancerDefinition> enhancerDefinitions) |
| Modifier and Type | Method and Description |
|---|---|
HandlerDefinition |
getObject() |
Class<?> |
getObjectType() |
void |
setBeanClassLoader(ClassLoader classLoader) |
public HandlerDefinitionFactoryBean(List<HandlerDefinition> definitions, List<HandlerEnhancerDefinition> enhancerDefinitions)
public HandlerDefinition getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<HandlerDefinition>public Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<HandlerDefinition>public void setBeanClassLoader(@Nonnull ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwareCopyright © 2010–2023. All rights reserved.