类 Location
- java.lang.Object
- org.springframework.beans.factory.parsing.Location
public class Location extends Object
Class that models an arbitrary location in aresource
.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 XMLDocument
; or the source object might simply benull
.- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop
方法详细资料
getResource
public Resource getResource()
Get the resource with which this location is associated.
getSource
public Object getSource()
Get the actual location within the associatedresource
(may benull
).See the
class level javadoc for this class
for examples of what the actual type of the returned object may be.