org.jomc.spi
Interface Locator

Package class diagram package Locator

@Generated(value="org.jomc.tools.SourceFileProcessor 1.2",
           comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2")
public interface Locator

Locates objects.

Identifier:
org.jomc.spi.Locator
Multiplicity:
Many
Scope:
None

Version:
1.0
Author:
Christian Schulte 1.0
See Also:
getObject(Locator[].class), getObject(Locator.class, "implementation name"), org.jomc.ObjectManagerFactory

Method Summary
<T> T
getObject(Class<T> specification, URI location)
          Gets an object for a given location URI.
 

Method Detail

getObject

<T> T getObject(Class<T> specification,
                URI location)
            throws NullPointerException,
                   IOException
Gets an object for a given location URI.

Type Parameters:
T - The type of the object.
Parameters:
specification - The specification class of the object to locate.
location - The location URI of the object to locate.
Returns:
The object located at location or null, if no object is found at location.
Throws:
NullPointerException - if specification or location is null.
IOException - if locating the object fails.


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.