Code example for AbstractBeanDefinition

Methods: getBeanClassName

0
	private void validatePropery(IBeanProperty property, IBeansValidationContext context, IProgressMonitor monitor) {
		IBean bean = BeansModelUtils.getParentOfClass(property, IBean.class);
		AbstractBeanDefinition mergedBd = (AbstractBeanDefinition) BeansModelUtils.getMergedBeanDefinition(bean,
				context.getContextElement());
 
		String mergedClassName = mergedBd.getBeanClassName();
		IType type = ValidationRuleUtils.extractBeanClass(mergedBd, bean, mergedClassName, context);
		if (type != null) {
			validateMethod(property, type, property.getElementName(), true, context);
		} 
	} 
 
	private void validateBean(IBean bean, IBeansValidationContext context, IProgressMonitor monitor) {
		String className = ((Bean) bean).getBeanDefinition().getBeanClassName();
 
		// Check if bean class is marked deprecated 
		if (className != null && !SpringCoreUtils.hasPlaceHolder(className)) {
			IType type = JdtUtils.getJavaType(BeansModelUtils.getProject(bean).getProject(), className);
			try { 
				if (type != null && Flags.isDeprecated(type.getFlags())) {