示例#1
0
 public MethodCallbackAnonymousInnerClass(ActivitiStateAnnotationBeanPostProcessor outerInstance, object bean, string beanName, org.camunda.bpm.engine.spring.annotations.ProcessEngineComponent component)
 {
     this.outerInstance = outerInstance;
     this.bean          = bean;
     this.beanName      = beanName;
     this.component     = component;
 }
示例#2
0
//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);
        }