Java Code Examples for org.springframework.beans.factory.ListableBeanFactory#containsBeanDefinition()

The following examples show how to use org.springframework.beans.factory.ListableBeanFactory#containsBeanDefinition() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MBeanExporter.java    From spring-analysis-note with MIT License 4 votes vote down vote up
/**
 * Return whether the specified bean definition should be considered as abstract.
 */
private boolean isBeanDefinitionAbstract(ListableBeanFactory beanFactory, String beanName) {
	return (beanFactory instanceof ConfigurableListableBeanFactory && beanFactory.containsBeanDefinition(beanName) &&
			((ConfigurableListableBeanFactory) beanFactory).getBeanDefinition(beanName).isAbstract());
}
 
Example 2
Source File: MBeanExporter.java    From java-technology-stack with MIT License 4 votes vote down vote up
/**
 * Return whether the specified bean definition should be considered as abstract.
 */
private boolean isBeanDefinitionAbstract(ListableBeanFactory beanFactory, String beanName) {
	return (beanFactory instanceof ConfigurableListableBeanFactory && beanFactory.containsBeanDefinition(beanName) &&
			((ConfigurableListableBeanFactory) beanFactory).getBeanDefinition(beanName).isAbstract());
}
 
Example 3
Source File: MBeanExporter.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Return whether the specified bean definition should be considered as abstract.
 */
private boolean isBeanDefinitionAbstract(ListableBeanFactory beanFactory, String beanName) {
	return (beanFactory instanceof ConfigurableListableBeanFactory && beanFactory.containsBeanDefinition(beanName) &&
			((ConfigurableListableBeanFactory) beanFactory).getBeanDefinition(beanName).isAbstract());
}
 
Example 4
Source File: MBeanExporter.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
/**
 * Return whether the specified bean definition should be considered as abstract.
 */
private boolean isBeanDefinitionAbstract(ListableBeanFactory beanFactory, String beanName) {
	return (beanFactory instanceof ConfigurableListableBeanFactory && beanFactory.containsBeanDefinition(beanName) &&
			((ConfigurableListableBeanFactory) beanFactory).getBeanDefinition(beanName).isAbstract());
}
 
Example 5
Source File: MBeanExporter.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Return whether the specified bean definition should be considered as lazy-init.
 * @param beanFactory the bean factory that is supposed to contain the bean definition
 * @param beanName the name of the bean to check
 * @see org.springframework.beans.factory.config.ConfigurableListableBeanFactory#getBeanDefinition
 * @see org.springframework.beans.factory.config.BeanDefinition#isLazyInit
 */
protected boolean isBeanDefinitionLazyInit(ListableBeanFactory beanFactory, String beanName) {
	return (beanFactory instanceof ConfigurableListableBeanFactory && beanFactory.containsBeanDefinition(beanName) &&
			((ConfigurableListableBeanFactory) beanFactory).getBeanDefinition(beanName).isLazyInit());
}
 
Example 6
Source File: MBeanExporter.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Return whether the specified bean definition should be considered as lazy-init.
 * @param beanFactory the bean factory that is supposed to contain the bean definition
 * @param beanName the name of the bean to check
 * @see org.springframework.beans.factory.config.ConfigurableListableBeanFactory#getBeanDefinition
 * @see org.springframework.beans.factory.config.BeanDefinition#isLazyInit
 */
protected boolean isBeanDefinitionLazyInit(ListableBeanFactory beanFactory, String beanName) {
	return (beanFactory instanceof ConfigurableListableBeanFactory && beanFactory.containsBeanDefinition(beanName) &&
			((ConfigurableListableBeanFactory) beanFactory).getBeanDefinition(beanName).isLazyInit());
}
 
Example 7
Source File: MBeanExporter.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Return whether the specified bean definition should be considered as lazy-init.
 * @param beanFactory the bean factory that is supposed to contain the bean definition
 * @param beanName the name of the bean to check
 * @see org.springframework.beans.factory.config.ConfigurableListableBeanFactory#getBeanDefinition
 * @see org.springframework.beans.factory.config.BeanDefinition#isLazyInit
 */
protected boolean isBeanDefinitionLazyInit(ListableBeanFactory beanFactory, String beanName) {
	return (beanFactory instanceof ConfigurableListableBeanFactory && beanFactory.containsBeanDefinition(beanName) &&
			((ConfigurableListableBeanFactory) beanFactory).getBeanDefinition(beanName).isLazyInit());
}
 
Example 8
Source File: MBeanExporter.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Return whether the specified bean definition should be considered as lazy-init.
 * @param beanFactory the bean factory that is supposed to contain the bean definition
 * @param beanName the name of the bean to check
 * @see org.springframework.beans.factory.config.ConfigurableListableBeanFactory#getBeanDefinition
 * @see org.springframework.beans.factory.config.BeanDefinition#isLazyInit
 */
protected boolean isBeanDefinitionLazyInit(ListableBeanFactory beanFactory, String beanName) {
	return (beanFactory instanceof ConfigurableListableBeanFactory && beanFactory.containsBeanDefinition(beanName) &&
			((ConfigurableListableBeanFactory) beanFactory).getBeanDefinition(beanName).isLazyInit());
}