intarsys runtime library

de.intarsys.tools.locator
Class StandardLocatorOutlet

java.lang.Object
  extended by de.intarsys.tools.locator.CommonLocatorFactory
      extended by de.intarsys.tools.locator.StandardLocatorOutlet
All Implemented Interfaces:
ILocatorFactory, ILocatorOutlet

public class StandardLocatorOutlet
extends CommonLocatorFactory
implements ILocatorOutlet


Constructor Summary
StandardLocatorOutlet()
           
 
Method Summary
 ILocator createLocator(String location)
          Create a ILocator object.
 ILocatorFactory getDefaultLocatorFactory()
           
 Map<String,ILocatorFactory> getLocatorFactories()
           
 ILocatorFactory lookupLocatorFactory(String format)
           
 void registerLocatorFactory(String format, ILocatorFactory factory)
           
 void setDefaultLocatorFactory(ILocatorFactory defaultLocatorFactory)
           
 void unregisterLocatorFactory(String format)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardLocatorOutlet

public StandardLocatorOutlet()
Method Detail

createLocator

public final 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.

Specified by:
createLocator in interface ILocatorFactory
Parameters:
location - A location definition.
Returns:
The ILocator object created from the location.
Throws:
IOException

getDefaultLocatorFactory

public ILocatorFactory getDefaultLocatorFactory()

getLocatorFactories

public Map<String,ILocatorFactory> getLocatorFactories()
Specified by:
getLocatorFactories in interface ILocatorOutlet

lookupLocatorFactory

public ILocatorFactory lookupLocatorFactory(String format)
Specified by:
lookupLocatorFactory in interface ILocatorOutlet

registerLocatorFactory

public void registerLocatorFactory(String format,
                                   ILocatorFactory factory)
Specified by:
registerLocatorFactory in interface ILocatorOutlet

setDefaultLocatorFactory

public void setDefaultLocatorFactory(ILocatorFactory defaultLocatorFactory)

unregisterLocatorFactory

public void unregisterLocatorFactory(String format)
Specified by:
unregisterLocatorFactory in interface ILocatorOutlet

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.