public class BeanInfo extends Object
The BeanInfo object holds references to beans in the ApplicationContext. The BeanInfo is responsible for proxying objects, or instantiating them when needed if the beanProviderMethod does not return an interface. (Only interfaces can be proxied with the default Java proxy).
You normally never need to bother with the BeanInfo object directly.
| Constructor and Description |
|---|
BeanInfo(Method beanCreationMethod,
Object provider) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object |
getBean() |
Method |
getBeanCreationMethod() |
String |
getBeanName() |
Object |
getProvider() |
Object |
instantiate() |
boolean |
isEager() |
void |
setBeanCreationMethod(Method beanCreationMethod) |
void |
setProvider(Object provider) |
public boolean isEager()
public Object getBean()
public Object instantiate() throws IllegalAccessException, InvocationTargetException
public String getBeanName()
public Object getProvider()
public void setProvider(Object provider)
public Method getBeanCreationMethod()
public void setBeanCreationMethod(Method beanCreationMethod)
Copyright © 2011 Syse Data AS. All Rights Reserved.