1 16 17 package org.springframework.beans.factory.parsing; 18 19 import org.springframework.core.io.Resource; 20 import org.springframework.util.Assert; 21 22 35 public class Location { 36 37 private final Resource resource; 38 39 private final Object source; 40 41 42 46 public Location(Resource resource) { 47 this(resource, null); 48 } 49 50 56 public Location(Resource resource, Object source) { 57 Assert.notNull(resource, "Resource must not be null"); 58 this.resource = resource; 59 this.source = source; 60 } 61 62 63 66 public Resource getResource() { 67 return this.resource; 68 } 69 70 76 public Object getSource() { 77 return this.source; 78 } 79 80 } 81 | Popular Tags |