Class Location
java.lang.Object
org.springframework.beans.factory.parsing.Location
Class that models an arbitrary location in a 
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.
- Since:
- 2.0
- Author:
- Rob Harrop
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGet the resource with which this location is associated.Get the actual location within the associatedresource(may benull).
- 
Constructor Details- 
LocationCreate a new instance of theLocationclass.- Parameters:
- resource- the resource with which this location is associated
 
- 
LocationCreate a new instance of theLocationclass.- Parameters:
- resource- the resource with which this location is associated
- source- the actual location within the associated resource (may be- null)
 
 
- 
- 
Method Details- 
getResourceGet the resource with which this location is associated.
- 
getSourceGet the actual location within the associatedresource(may benull).See the class level javadoc for this classfor examples of what the actual type of the returned object may be.
 
-