|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hivemind.lib.impl.NameLookupImpl
public class NameLookupImpl
Standard implementation of the NameLookup
service interface.
Constructor Summary | |
---|---|
NameLookupImpl()
|
Method Summary | |
---|---|
protected javax.naming.Context |
constructContext(java.util.Hashtable properties)
Constructs the InitialContext (this is separated out in a standalone method so that it may be overridden in a testing subclass). |
java.lang.Object |
lookup(java.lang.String name,
java.lang.Class expected)
Performs the lookup, returning the object that was found. |
void |
remoteExceptionDidOccur(RemoteExceptionEvent event)
Sets the InitialContext to null. |
void |
setCoordinator(RemoteExceptionCoordinator coordinator)
|
void |
setInitialFactory(java.lang.String string)
Sets the initial factory used to create the initial JNDI context. |
void |
setProviderURL(java.lang.String string)
Sets the JNDI provider URL, used to create the initial JNDI context. |
void |
setURLPackages(java.lang.String string)
Sets the URL packages, used to create the initial JNDI context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NameLookupImpl()
Method Detail |
---|
public java.lang.Object lookup(java.lang.String name, java.lang.Class expected)
NameLookup
lookup
in interface NameLookup
name
- the name to lookupexpected
- the expected class of the object; the object found must be assignable
to this class (which may be a class or interface)protected javax.naming.Context constructContext(java.util.Hashtable properties) throws javax.naming.NamingException
javax.naming.NamingException
public void remoteExceptionDidOccur(RemoteExceptionEvent event)
remoteExceptionDidOccur
in interface RemoteExceptionListener
public void setInitialFactory(java.lang.String string)
java.naming.factory.initial
.
public void setProviderURL(java.lang.String string)
java.naming.provider.url
.
public void setURLPackages(java.lang.String string)
java.naming.factory.url.pkgs
public void setCoordinator(RemoteExceptionCoordinator coordinator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |