//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException public virtual object postProcessAfterInitialization(object bean, string beanName) { if (bean is AopInfrastructureBean) { // Ignore AOP infrastructure such as scoped proxies. return(bean); } Type targetClass = AopUtils.getTargetClass(bean); if (AopUtils.canApply(this.advisor, targetClass)) { if (bean is Advised) { ((Advised)bean).addAdvisor(0, this.advisor); return(bean); } else { ProxyFactory proxyFactory = new ProxyFactory(bean); // Copy our properties (proxyTargetClass etc) inherited from ProxyConfig. proxyFactory.copyFrom(this); proxyFactory.addAdvisor(this.advisor); return(proxyFactory.getProxy(this.beanClassLoader)); } } else { // No async proxy needed. return(bean); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public Object postProcessAfterInitialization(final Object bean, final String beanName) throws org.springframework.beans.BeansException //JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET: public virtual object postProcessAfterInitialization(object bean, string beanName) { // first sift through and get all the methods // then get all the annotations // then build the metadata and register the metadata //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final Class targetClass = org.springframework.aop.support.AopUtils.getTargetClass(bean); Type targetClass = AopUtils.getTargetClass(bean); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.engine.spring.annotations.ProcessEngineComponent component = targetClass.getAnnotation(org.camunda.bpm.engine.spring.annotations.ProcessEngineComponent.class); org.camunda.bpm.engine.spring.annotations.ProcessEngineComponent component = targetClass.getAnnotation(typeof(org.camunda.bpm.engine.spring.annotations.ProcessEngineComponent)); ReflectionUtils.doWithMethods(targetClass, new MethodCallbackAnonymousInnerClass(this, bean, beanName, component) , new MethodFilterAnonymousInnerClass(this)); return(bean); }