intarsys runtime library

de.intarsys.tools.locator
Class MappedLocatorLookup

java.lang.Object
  extended by de.intarsys.tools.locator.AbstractLocatorLookup
      extended by de.intarsys.tools.locator.MappedLocatorLookup
All Implemented Interfaces:
ILocatorFactory

public class MappedLocatorLookup
extends AbstractLocatorLookup


Constructor Summary
MappedLocatorLookup()
           
 
Method Summary
 void addMap(String name, ILocator locator)
           
 ILocator createLocator(String location)
          Create a ILocator object.
 Map<String,ILocator> getMaps()
           
 void removeMap(String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappedLocatorLookup

public MappedLocatorLookup()
Method Detail

addMap

public void addMap(String name,
                   ILocator locator)

createLocator

public ILocator createLocator(String location)
                       throws IOException
Description copied from interface: ILocatorFactory
Create a ILocator object.

path may for example define a file in the file system.

Parameters:
location - The fully qualified location definition.
Returns:
The ILocator object created from the location.
Throws:
IOException

getMaps

public Map<String,ILocator> getMaps()

removeMap

public void removeMap(String name)

intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.