Code example for AbstractBeanDefinition

Methods: validate

0
	public void validate(IBean bean, IBeansValidationContext context,
			IProgressMonitor monitor) {
		AbstractBeanDefinition bd = (AbstractBeanDefinition) ((Bean) bean)
				.getBeanDefinition(); 
		try { 
			bd.validate();
		} catch (BeanDefinitionValidationException e) {
			context.error(bean, "INVALID_BEAN_DEFINITION",
					"Invalid bean definition: " + e.getMessage());
		} 
	} 
} 
 
Experience pair programming with AI  Get Codota for Java