org.codehaus.dna
Interface ResourceLocator

All Known Implementing Classes:
DefaultResourceLocator

public interface ResourceLocator

This is the interface via which component resources can be accessed via keys.

Version:
$Revision: 1.2 $ $Date: 2004/05/01 09:51:48 $

Method Summary
 boolean contains(java.lang.String key)
          Return true if a resource exists with specified key.
 java.lang.Object lookup(java.lang.String key)
          Return resource registered with specified key.
 

Method Detail

lookup

public java.lang.Object lookup(java.lang.String key)
                        throws MissingResourceException
Return resource registered with specified key.

Parameters:
key - the key
Returns:
the resource
Throws:
MissingResourceException - if unable to locate resource with specified key

contains

public boolean contains(java.lang.String key)
Return true if a resource exists with specified key.

Parameters:
key - the key
Returns:
true if a resource exists with specified key.


Copyright © 2003-2004 Codehaus. All Rights Reserved.