public class SpringBeanLocator extends Object implements IProxyTargetLocator
IProxyTargetLocator
that can locate beans within a spring application
context. Beans are looked up by the combination of name and type, if name is omitted only type is
used.Constructor and Description |
---|
SpringBeanLocator(Class<?> beanType,
Field beanField,
ISpringContextLocator locator)
Constructor
|
SpringBeanLocator(Class<?> beanType,
ISpringContextLocator locator)
Constructor
|
SpringBeanLocator(String beanName,
Class<?> beanType,
Field beanField,
ISpringContextLocator locator)
Constructor
|
SpringBeanLocator(String beanName,
Class<?> beanType,
ISpringContextLocator locator) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
org.springframework.beans.factory.support.RootBeanDefinition |
getBeanDefinition(org.springframework.context.ApplicationContext ctx,
String name)
Gets the root bean definition for the given name.
|
String |
getBeanName() |
Class<?> |
getBeanType() |
ISpringContextLocator |
getSpringContextLocator() |
int |
hashCode() |
boolean |
isSingletonBean() |
Object |
locateProxyTarget()
Returns the object that will be used as target object for a lazy init proxy.
|
public SpringBeanLocator(Class<?> beanType, ISpringContextLocator locator)
beanType
- bean classlocator
- spring context locatorpublic SpringBeanLocator(String beanName, Class<?> beanType, ISpringContextLocator locator)
public SpringBeanLocator(Class<?> beanType, Field beanField, ISpringContextLocator locator)
beanType
- bean classlocator
- spring context locatorpublic SpringBeanLocator(String beanName, Class<?> beanType, Field beanField, ISpringContextLocator locator)
beanName
- bean namebeanType
- bean classlocator
- spring context locatorpublic boolean isSingletonBean()
public Class<?> getBeanType()
public Object locateProxyTarget()
IProxyTargetLocator
locateProxyTarget
in interface IProxyTargetLocator
public final String getBeanName()
public final ISpringContextLocator getSpringContextLocator()
public org.springframework.beans.factory.support.RootBeanDefinition getBeanDefinition(org.springframework.context.ApplicationContext ctx, String name)
ctx
- spring application context.name
- bean nameCopyright © 2006–2022 Apache Software Foundation. All rights reserved.