org.jomc.ri
Class DefaultLocator

Package class diagram package DefaultLocator
java.lang.Object
  extended by org.jomc.ri.DefaultLocator
All Implemented Interfaces:
Locator

@Generated(value="org.jomc.tools.SourceFileProcessor 1.2.2",
           comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2")
public class DefaultLocator
extends Object
implements Locator

Default Locator implementation.

Identifier:
org.jomc.ri.DefaultLocator
Name:
JOMC RI
Abstract:
No
Final:
No
Stateless:
No

Version:
1.0
Author:
Christian Schulte 1.0

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.
<T> T
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

DefaultLocator

@Generated(value="org.jomc.tools.SourceFileProcessor 1.2.2",
           comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2")
public DefaultLocator()
Creates a new DefaultLocator instance.

Method Detail

isLocationSupported

public boolean isLocationSupported(URI location)
Gets a flag indicating support for a given location URI.

Parameters:
location - The location URI to test support for.
Returns:
true, if location is supported by this implementation; false, else.
Throws:
NullPointerException - if location is null.

getJndiContext

public Context getJndiContext()
                       throws NamingException
Gets the JNDI context of the instance.

Returns:
The JNDI context of the instance.
Throws:
NamingException - if getting the context fails.

getJndiName

public String getJndiName(URI location)
Gets the JNDI name for a given location.

Parameters:
location - The location to get a JNDI name for.
Returns:
The JNDI name for location.
Throws:
NullPointerException - if location is null.

getObject

public <T> T getObject(Class<T> specification,
                       URI location)
            throws IOException
Specified by:
getObject in interface Locator
Throws:
IOException


Copyright © 2005-2012 The JOMC Project. All Rights Reserved.Get JOMC at SourceForge.net. Fast, secure and Free Open Source software downloads
Please note that this documentation is maintained by non-native english speaking authors. As such, you may encounter phrases or wordings which seem imprecise or may even have a totally different meaning to native english speaking readers than what the individual author was trying to express. If you are a native english speaking reader and find any such phrases or wordings we kindly ask you to send an email to the corresponding author and help us improve this documentation in order to avoid misunderstandings. You will find the authors' email addresses at the top of each class. Please accept our apologies for any inconvenience caused.