public class DefaultBeanConfiguration extends groovy.lang.GroovyObjectSupport implements BeanConfiguration
AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE| Constructor and Description |
|---|
DefaultBeanConfiguration(java.lang.Class<?> clazz2) |
DefaultBeanConfiguration(java.lang.Class<?> clazz2,
java.util.Collection<?> constructorArguments) |
DefaultBeanConfiguration(java.lang.String name) |
DefaultBeanConfiguration(java.lang.String name2,
boolean prototype) |
DefaultBeanConfiguration(java.lang.String name,
java.lang.Class<?> clazz) |
DefaultBeanConfiguration(java.lang.String name,
java.lang.Class<?> clazz,
boolean prototype) |
DefaultBeanConfiguration(java.lang.String name2,
java.lang.Class<?> clazz2,
java.util.Collection<?> args) |
| Modifier and Type | Method and Description |
|---|---|
BeanConfiguration |
addProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
Adds a property value to this bean.
|
protected org.springframework.beans.factory.support.AbstractBeanDefinition |
createBeanDefinition() |
org.springframework.beans.factory.support.AbstractBeanDefinition |
getBeanDefinition() |
java.lang.String |
getName() |
java.lang.Object |
getProperty(java.lang.String property) |
java.lang.Object |
getPropertyValue(java.lang.String propName)
Returns the value of the given property or throws a MissingPropertyException.
|
boolean |
hasProperty(java.lang.String propName)
Returns true if the bean config has the name property set.
|
boolean |
isSingleton() |
BeanConfiguration |
setAbstract(boolean isAbstract)
Sets the BeanConfiguration as an Abstract bean definition
|
BeanConfiguration |
setAutowire(java.lang.String type)
Sets the autowire type, either "byType" or "byName"
|
void |
setBeanDefinition(org.springframework.beans.factory.config.BeanDefinition definition) |
BeanConfiguration |
setDependsOn(java.lang.String[] dependsOn)
Sets the names of the beans this bean configuration depends on
|
BeanConfiguration |
setDestroyMethod(java.lang.String methodName)
Sets the name of the method to call when destroying the bean.
|
BeanConfiguration |
setFactoryBean(java.lang.String beanName) |
BeanConfiguration |
setFactoryMethod(java.lang.String methodName) |
void |
setName(java.lang.String beanName)
Sets the name of the bean in the app ctx.
|
void |
setParent(java.lang.Object obj)
Sets the name of the parent bean.
|
void |
setProperty(java.lang.String property,
java.lang.Object newValue) |
void |
setPropertyValue(java.lang.String property,
java.lang.Object newValue)
Sets a property value on the bean configuration
|
public DefaultBeanConfiguration(java.lang.String name,
java.lang.Class<?> clazz)
public DefaultBeanConfiguration(java.lang.String name,
java.lang.Class<?> clazz,
boolean prototype)
public DefaultBeanConfiguration(java.lang.String name)
public DefaultBeanConfiguration(java.lang.Class<?> clazz2)
public DefaultBeanConfiguration(java.lang.String name2,
java.lang.Class<?> clazz2,
java.util.Collection<?> args)
public DefaultBeanConfiguration(java.lang.String name2,
boolean prototype)
public DefaultBeanConfiguration(java.lang.Class<?> clazz2,
java.util.Collection<?> constructorArguments)
public java.lang.Object getProperty(java.lang.String property)
getProperty in interface groovy.lang.GroovyObjectgetProperty in class groovy.lang.GroovyObjectSupportpublic void setProperty(java.lang.String property,
java.lang.Object newValue)
setProperty in interface groovy.lang.GroovyObjectsetProperty in class groovy.lang.GroovyObjectSupportpublic java.lang.String getName()
getName in interface BeanConfigurationpublic boolean isSingleton()
isSingleton in interface BeanConfigurationpublic org.springframework.beans.factory.support.AbstractBeanDefinition getBeanDefinition()
getBeanDefinition in interface BeanConfigurationpublic void setBeanDefinition(org.springframework.beans.factory.config.BeanDefinition definition)
setBeanDefinition in interface BeanConfigurationprotected org.springframework.beans.factory.support.AbstractBeanDefinition createBeanDefinition()
public BeanConfiguration addProperty(java.lang.String propertyName, java.lang.Object propertyValue)
BeanConfigurationaddProperty in interface BeanConfigurationpropertyName - The name of the propertypropertyValue - The value of the propertypublic BeanConfiguration setDestroyMethod(java.lang.String methodName)
BeanConfigurationsetDestroyMethod in interface BeanConfigurationmethodName - The method namepublic BeanConfiguration setDependsOn(java.lang.String[] dependsOn)
BeanConfigurationsetDependsOn in interface BeanConfigurationdependsOn - Bean names it depends onpublic BeanConfiguration setFactoryBean(java.lang.String beanName)
setFactoryBean in interface BeanConfigurationpublic BeanConfiguration setFactoryMethod(java.lang.String methodName)
setFactoryMethod in interface BeanConfigurationpublic BeanConfiguration setAutowire(java.lang.String type)
BeanConfigurationsetAutowire in interface BeanConfigurationtype - The typepublic void setName(java.lang.String beanName)
BeanConfigurationsetName in interface BeanConfigurationbeanName - The bean namepublic java.lang.Object getPropertyValue(java.lang.String propName)
BeanConfigurationgetPropertyValue in interface BeanConfigurationpropName - The name of the propertypublic boolean hasProperty(java.lang.String propName)
BeanConfigurationhasProperty in interface BeanConfigurationpropName - The name of the propertypublic void setPropertyValue(java.lang.String property,
java.lang.Object newValue)
BeanConfigurationsetPropertyValue in interface BeanConfigurationproperty - The name of the propertynewValue - The valuepublic BeanConfiguration setAbstract(boolean isAbstract)
BeanConfigurationsetAbstract in interface BeanConfigurationisAbstract - Whether its abstract or notpublic void setParent(java.lang.Object obj)
BeanConfigurationsetParent in interface BeanConfigurationobj - Either a string which is the name of the bean, a RuntimeBeanReference or a BeanConfiguration