@Generated(value="org.jomc.tools.SourceFileProcessor 1.3", comments="See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3") public class DefaultLocator extends Object implements Locator
Locator
implementation.
Constructor and Description |
---|
DefaultLocator()
Creates a new
DefaultLocator instance. |
Modifier and Type | Method and Description |
---|---|
Context |
getJndiContext()
Gets the JNDI context of the instance.
|
String |
getJndiName(URI location)
Gets the JNDI name for a given location.
|
<T> T |
getObject(Class<T> specification,
URI location) |
boolean |
isLocationSupported(URI location)
Gets a flag indicating support for a given location URI.
|
@Generated(value="org.jomc.tools.SourceFileProcessor 1.3", comments="See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3") public DefaultLocator()
DefaultLocator
instance.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 Locator
IOException
Copyright © 2005-2012 The JOMC Project. All Rights Reserved.