org.apache.tuscany.sca.implementation.java.injection
Interface ResourceHost


public interface ResourceHost

Interface implemented by host environments that allow for resolution of component implementation resources, e.g. items bound in a JNDI tree.


Method Summary
<T> T
resolveResource(java.lang.Class<T> type)
          Resolve a resource matching the given type
<T> T
resolveResource(java.lang.Class<T> type, java.lang.String mappedName)
          Resolve a resource matching the given type and name
 

Method Detail

resolveResource

<T> T resolveResource(java.lang.Class<T> type)
                  throws ResourceResolutionException
Resolve a resource matching the given type

Parameters:
type - the type of the resources
Throws:
ResourceResolutionException - if an error is encountered during resolution

resolveResource

<T> T resolveResource(java.lang.Class<T> type,
                      java.lang.String mappedName)
                  throws ResourceResolutionException
Resolve a resource matching the given type and name

Parameters:
type - the type of the resources
mappedName - the mapped name of the resource
Throws:
ResourceResolutionException - if an error is encountered during resolution