|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpu.patterns.serviceLocator.Locator.DefaultLookupStrategy
Simple lookup strategy implementation based on "new InitialContext(System.getProperties()).lookup()
".
Constructor Summary | |
Locator.DefaultLookupStrategy(Locator locator)
|
Method Summary | |
protected java.util.Properties |
getJndiProperties(java.util.Properties props)
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Locator.DefaultLookupStrategy(Locator locator)
Method Detail |
public java.util.Properties getProperties()
getProperties
in interface ILocator.ILookupStrategy
protected java.util.Properties getJndiProperties(java.util.Properties props)
public java.lang.Object lookup(java.lang.String namingIdentifier, ServiceLocatorOptions options) throws ServiceLocatorException
ILocator.ILookupStrategy
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.
lookup
in interface ILocator.ILookupStrategy
ServiceLocatorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |