org.springframework.beans.factory.ListableBeanFactory#containsBeanDefinition ( )源码实例Demo

下面列出了org.springframework.beans.factory.ListableBeanFactory#containsBeanDefinition ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: spring-analysis-note   文件: MBeanExporter.java
/**
 * 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());
}
 
源代码2 项目: java-technology-stack   文件: MBeanExporter.java
/**
 * 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());
}
 
源代码3 项目: lams   文件: MBeanExporter.java
/**
 * 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());
}
 
源代码4 项目: spring4-understanding   文件: MBeanExporter.java
/**
 * 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());
}
 
源代码5 项目: spring-analysis-note   文件: MBeanExporter.java
/**
 * 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());
}
 
源代码6 项目: java-technology-stack   文件: MBeanExporter.java
/**
 * 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());
}
 
源代码7 项目: lams   文件: MBeanExporter.java
/**
 * 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());
}
 
源代码8 项目: spring4-understanding   文件: MBeanExporter.java
/**
 * 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());
}