类 Location


  • public class Location
    extends Object
    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.

    从以下版本开始:
    2.0
    作者:
    Rob Harrop
    • 构造器详细资料

      • Location

        public Location​(Resource resource)
        Create a new instance of the Location class.
        参数:
        resource - the resource with which this location is associated
      • Location

        public Location​(Resource resource,
                        Object source)
        Create a new instance of the Location class.
        参数:
        resource - the resource with which this location is associated
        source - the actual location within the associated resource (may be null)