public class Location extends Object
resource.
 Typically used to track the location of problematic or erroneous
 metadata in XML configuration files. For example, a
 source location might be 'The bean defined on
 line 76 of beans.properties has an invalid Class'; another source might
 be the actual DOM Element from a parsed XML Document;
 or the source object might simply be null.
| Constructor and Description | 
|---|
| Location(org.springframework.core.io.Resource resource)Create a new instance of the  Locationclass. | 
| Location(org.springframework.core.io.Resource resource,
        Object source)Create a new instance of the  Locationclass. | 
| Modifier and Type | Method and Description | 
|---|---|
| org.springframework.core.io.Resource | getResource()Get the resource with which this location is associated. | 
| Object | getSource()Get the actual location within the associated  resource(may benull). | 
public Location(org.springframework.core.io.Resource resource)
Location class.resource - the resource with which this location is associatedpublic org.springframework.core.io.Resource getResource()
@Nullable public Object getSource()
resource
 (may be null).
 See the class level javadoc for this class for examples
 of what the actual type of the returned object may be.