1 16 17 package org.springframework.aop.config; 18 19 import org.springframework.beans.factory.config.BeanDefinition; 20 import org.springframework.beans.factory.config.BeanReference; 21 import org.springframework.beans.factory.parsing.CompositeComponentDefinition; 22 23 33 public class AspectComponentDefinition extends CompositeComponentDefinition { 34 35 private final BeanDefinition[] beanDefinitions; 36 37 private final BeanReference[] beanReferences; 38 39 40 public AspectComponentDefinition( 41 String aspectName, BeanDefinition[] beanDefinitions, BeanReference[] beanReferences, Object source) { 42 43 super(aspectName, source); 44 this.beanDefinitions = (beanDefinitions != null ? beanDefinitions : new BeanDefinition[0]); 45 this.beanReferences = (beanReferences != null ? beanReferences : new BeanReference[0]); 46 } 47 48 public BeanDefinition[] getBeanDefinitions() { 49 return this.beanDefinitions; 50 } 51 52 public BeanReference[] getBeanReferences() { 53 return this.beanReferences; 54 } 55 56 } 57 | Popular Tags |