Class AbstractLocator

  • All Implemented Interfaces:
    Locator
    Direct Known Subclasses:
    AbstractStreamLocator, ClassPathLocator, FileLocator, URLLocator

    public abstract class AbstractLocator
    extends Object
    implements Locator

    An adapter class for implementing concrete Locator classes.

    This class implements the Locator interface and provides dummy implementations for most of the methods defined in this interface. It can serve as a starting point for the implementation of custom Locator classes; then the developer only needs to deal with the methods that are really required.

    Because the getURL() method must be implemented in every locator, no dummy implementation for this method is provided.

    Version:
    $Id: AbstractLocator.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger