Changeset 3928

Show
Ignore:
Timestamp:
11/13/08 17:46:19 (2 months ago)
Author:
mtld
Message:

added quickfix to support class name substitution, better solution should call AnnotationBeanDefinitionPostProcessor? after BeanFactoryPostProcessors? were executed, until then classes defined using class name substitution won't support the @Inject annotation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/pfixcore/src/org/pustefixframework/container/spring/beans/AnnotationBeanDefinitionPostProcessor.java

    r3917 r3928  
    9999     */ 
    100100    private void processBeanDefinition(String beanName, BeanDefinition beanDefinition, DefaultListableBeanFactory beanFactory) { 
    101         ClassLoader beanClassLoader = getClassLoader(beanFactory);      
    102          
     101        ClassLoader beanClassLoader = getClassLoader(beanFactory); 
     102        //TODO: remove quickfix 
     103        if (beanDefinition.getBeanClassName().contains("${")) return; 
    103104        Class<?> beanClass; 
    104105        try { 
     
    200201            } 
    201202            BeanDefinition beanDefinition = beanFactory.getBeanDefinition(beanName); 
     203            //TODO: remove quickfix 
     204            if (beanDefinition.getBeanClassName().contains("${")) continue; 
    202205            Class<?> beanClass; 
    203206            try {