org.apache.avalon.excalibur.container
Class Locator

java.lang.Object
  |
  +--org.apache.avalon.excalibur.container.Locator

public class Locator
extends java.lang.Object

This contains information required to locate a component.

Author:
Peter Donald

Constructor Summary
Locator(java.lang.String name, java.net.URL location)
           
 
Method Summary
 java.net.URL getLocation()
          Retrieve location of component.
 java.lang.String getName()
          Retrieve "name" of component type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Locator

public Locator(java.lang.String name,
               java.net.URL location)
Method Detail

getName

public java.lang.String getName()
Retrieve "name" of component type. The "name" usually indicates the classname.
Returns:
the name

getLocation

public java.net.URL getLocation()
Retrieve location of component. Usually references the archive (zip/jar/war/ear) which contains the name (ie classname). May be null.
Returns:
the URL of location


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.