org.jpu.patterns.serviceLocator.onePerContext.test
Class opctest.BogusLookupStrategy

java.lang.Object
  extended byorg.jpu.patterns.serviceLocator.Locator.DefaultLookupStrategy
      extended byorg.jpu.patterns.serviceLocator.onePerContext.test.opctest.BogusLookupStrategy
All Implemented Interfaces:
ILocator.ILookupStrategy
Enclosing class:
opctest

public static class opctest.BogusLookupStrategy
extends Locator.DefaultLookupStrategy


Constructor Summary
opctest.BogusLookupStrategy(Locator loc)
           
 
Method Summary
 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.
 
Methods inherited from class org.jpu.patterns.serviceLocator.Locator.DefaultLookupStrategy
getJndiProperties, getProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

opctest.BogusLookupStrategy

public opctest.BogusLookupStrategy(Locator loc)
Method Detail

lookup

public java.lang.Object lookup(java.lang.String namingIdentifier,
                               ServiceLocatorOptions options)
                        throws ServiceLocatorException
Description copied from interface: ILocator.ILookupStrategy
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.

Specified by:
lookup in interface ILocator.ILookupStrategy
Overrides:
lookup in class Locator.DefaultLookupStrategy
Throws:
ServiceLocatorException


Copyright (c) 2001-2003 - Apache Software Foundation