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() |
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()
locateProxyTarget in interface IProxyTargetLocatorpublic 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–2015 Apache Software Foundation. All rights reserved.