1 16 17 package org.springframework.beans.factory.parsing; 18 19 import org.springframework.beans.BeanMetadataElement; 20 import org.springframework.util.Assert; 21 22 29 public class ImportDefinition implements BeanMetadataElement { 30 31 private final String importedResource; 32 33 private final Object source; 34 35 36 40 public ImportDefinition(String importedResource) { 41 this(importedResource, null); 42 } 43 44 49 public ImportDefinition(String importedResource, Object source) { 50 Assert.notNull(importedResource, "Imported resource must not be null"); 51 this.importedResource = importedResource; 52 this.source = source; 53 } 54 55 56 59 public String getImportedResource() { 60 return importedResource; 61 } 62 63 public Object getSource() { 64 return source; 65 } 66 67 } 68 | Popular Tags |