Code example for AbstractBeanDefinition

Methods: getDestroyMethodNamegetInitMethodName

0
				context.getContextElement());
 
		String mergedClassName = mergedBd.getBeanClassName();
		IType type = ValidationRuleUtils.extractBeanClass(mergedBd, bean, mergedClassName, context);
		if (type != null) {
			validateMethod(bean, type, bd.getInitMethodName(), false, context);
			validateMethod(bean, type, bd.getDestroyMethodName(), false, context);
		} 
	} 
 
	private void validateMethod(IResourceModelElement bean, IType type, String methodName, boolean setter,
			IBeansValidationContext context) {
		if (methodName != null && !SpringCoreUtils.hasPlaceHolder(methodName)) {
			try { 
				IMethod method = null;
				if (setter) {
					method = Introspector.getWritableProperty(type, methodName);
				} 
				else { 
					method = Introspector.findMethod(type, methodName, 0, Public.DONT_CARE, Static.DONT_CARE);