org.apache.tuscany.sca.core
Interface UtilityExtensionPoint

All Known Implementing Classes:
DefaultUtilityExtensionPoint

public interface UtilityExtensionPoint

The extension point for the Tuscany core utility extensions.


Method Summary
 void addUtility(java.lang.Object utility)
          Add a utility to the extension point
<T> T
getUtility(java.lang.Class<T> utilityType)
          Get the utility by the interface
 void removeUtility(java.lang.Object utility)
          Remove a utility
 

Method Detail

addUtility

void addUtility(java.lang.Object utility)
Add a utility to the extension point

Parameters:
utility - The instance of the utility
Throws:
java.lang.IllegalArgumentException - if utility is null

getUtility

<T> T getUtility(java.lang.Class<T> utilityType)
Get the utility by the interface

Parameters:
utilityType - The lookup key (utility interface)
Returns:
The instance of the utility
Throws:
java.lang.IllegalArgumentException - if utilityType is null

removeUtility

void removeUtility(java.lang.Object utility)
Remove a utility

Parameters:
utility - The utility to remove
Throws:
java.lang.IllegalArgumentException - if utility is null