MentaContainer

Rev

Rev 110 | Rev 120 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 110 Rev 119
Line 414... Line 414...
414
        }
414
        }
415
       
415
       
416
        @Override
416
        @Override
417
        public void autowire(String sourceFromContainer, String beanProperty) {
417
        public void autowire(String sourceFromContainer, String beanProperty) {
418
               
418
               
419
                // only by setter, because constructors does not have parameter names or properties...
-
 
-
 
419
                // autowire by constructor and setter...
420
               
420
               
421
                autowireBySetter(beanProperty, sourceFromContainer);
421
                autowireBySetter(beanProperty, sourceFromContainer);
-
 
422
               
-
 
423
                autowireByConstructor(sourceFromContainer);
422
        }
424
        }
423
425
424
        private void autowireBySetter(String targetProperty, String sourceFromContainer) {
426
        private void autowireBySetter(String targetProperty, String sourceFromContainer) {
425
               
427
               
426
                Class<? extends Object> sourceType = getType(sourceFromContainer);
428
                Class<? extends Object> sourceType = getType(sourceFromContainer);