org.jpu.patterns.serviceLocator
Interface ILocator.ILookupStrategy

All Known Implementing Classes:
Locator.DefaultLookupStrategy
Enclosing interface:
ILocator

public static interface ILocator.ILookupStrategy

Defines the interface for strategies that perform the actual lookup of objects (usually but not necessarily using JNDI). The default implementation Locator.DefaultLookupStrategy uses JNDI.


Method Summary
 java.util.Properties getProperties()
           
 java.lang.Object lookup(java.lang.String namingIdentifier, ServiceLocatorOptions options)
          Looks up the object with the given name and returns it, or throws an exception if it can't be found.
 

Method Detail

getProperties

public java.util.Properties getProperties()

lookup

public java.lang.Object lookup(java.lang.String namingIdentifier,
                               ServiceLocatorOptions options)
                        throws ServiceLocatorException
Looks up the object with the given name and returns it, or throws an exception if it can't be found. The ServiceLocatorOptions object passed to ILocator.getObject(String) is passed to this method.

This method should not narrow the object as that will be done by the caller.

Throws:
ServiceLocatorException


Copyright (c) 2001-2003 - Apache Software Foundation