@Test
public void testEvents() {
ComponentDefinition propertiesComponent = this.listener.getComponentDefinition("myProperties");
assertNotNull("Event for 'myProperties' not sent", propertiesComponent);
AbstractBeanDefinition propertiesBean = (AbstractBeanDefinition) propertiesComponent.getBeanDefinitions()[0];
assertEquals("Incorrect BeanDefinition", PropertiesFactoryBean.class, propertiesBean.getBeanClass());
ComponentDefinition constantComponent = this.listener.getComponentDefinition("min");
assertNotNull("Event for 'min' not sent", propertiesComponent);
AbstractBeanDefinition constantBean = (AbstractBeanDefinition) constantComponent.getBeanDefinitions()[0];
assertEquals("Incorrect BeanDefinition", FieldRetrievingFactoryBean.class, constantBean.getBeanClass());
}
java类org.springframework.beans.factory.config.FieldRetrievingFactoryBean的实例源码
UtilNamespaceHandlerTests.java 文件源码
项目:spring4-understanding
阅读 20
收藏 0
点赞 0
评论 0
UtilNamespaceHandlerTests.java 文件源码
项目:class-guard
阅读 35
收藏 0
点赞 0
评论 0
public void testEvents() throws Exception {
ComponentDefinition propertiesComponent = this.listener.getComponentDefinition("myProperties");
assertNotNull("Event for 'myProperties' not sent", propertiesComponent);
AbstractBeanDefinition propertiesBean = (AbstractBeanDefinition) propertiesComponent.getBeanDefinitions()[0];
assertEquals("Incorrect BeanDefinition", PropertiesFactoryBean.class, propertiesBean.getBeanClass());
ComponentDefinition constantComponent = this.listener.getComponentDefinition("min");
assertNotNull("Event for 'min' not sent", propertiesComponent);
AbstractBeanDefinition constantBean = (AbstractBeanDefinition) constantComponent.getBeanDefinitions()[0];
assertEquals("Incorrect BeanDefinition", FieldRetrievingFactoryBean.class, constantBean.getBeanClass());
}
UtilNamespaceHandler.java 文件源码
项目:lams
阅读 30
收藏 0
点赞 0
评论 0
@Override
protected Class<?> getBeanClass(Element element) {
return FieldRetrievingFactoryBean.class;
}
UtilNamespaceHandler.java 文件源码
项目:spring4-understanding
阅读 30
收藏 0
点赞 0
评论 0
@Override
protected Class<?> getBeanClass(Element element) {
return FieldRetrievingFactoryBean.class;
}
UtilNamespaceHandler.java 文件源码
项目:spring
阅读 22
收藏 0
点赞 0
评论 0
@Override
protected Class<?> getBeanClass(Element element) {
return FieldRetrievingFactoryBean.class;
}
UtilNamespaceHandler.java 文件源码
项目:class-guard
阅读 29
收藏 0
点赞 0
评论 0
@Override
protected Class getBeanClass(Element element) {
return FieldRetrievingFactoryBean.class;
}
DefaultRegistryDefinitionParser.java 文件源码
项目:opennmszh
阅读 20
收藏 0
点赞 0
评论 0
/** {@inheritDoc} */
@Override
protected Class<?> getBeanClass(Element element) {
return FieldRetrievingFactoryBean.class;
}
DefaultRegistryDefinitionParser.java 文件源码
项目:OpenNMS
阅读 21
收藏 0
点赞 0
评论 0
/** {@inheritDoc} */
@Override
protected Class<?> getBeanClass(Element element) {
return FieldRetrievingFactoryBean.class;
}