|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jomc.ri.DefaultLocator
@Generated(value="org.jomc.tools.JavaSources", comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools") public class DefaultLocator
Default Locator
implementation.
The default Locator
implementation looks up objects using JNDI.
It supports location URI schemes jndi
and jndi+rmi
.
Constructor Summary | |
---|---|
DefaultLocator()
Creates a new DefaultLocator instance. |
Method Summary | ||
---|---|---|
Context |
getJndiContext()
Gets the JNDI context of the instance. |
|
String |
getJndiName(URI location)
Gets the JNDI name for a given location. |
|
|
getObject(Class<T> specification,
URI location)
|
|
boolean |
isLocationSupported(URI location)
Gets a flag indicating support for a given location URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Generated(value="org.jomc.tools.JavaSources", comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools") public DefaultLocator()
DefaultLocator
instance.
Method Detail |
---|
public boolean isLocationSupported(URI location)
location
- The location URI to test support for.
true
if location
is supported by this implementation; false
else.
NullPointerException
- if location
is null
.public Context getJndiContext() throws NamingException
NamingException
- if getting the context fails.public String getJndiName(URI location)
location
- The location to get a JNDI name for.
location
.
NullPointerException
- if location
is null
.public <T> T getObject(Class<T> specification, URI location) throws IOException
getObject
in interface org.jomc.spi.Locator
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |