org.apache.tuscany.sca.context
Interface ContextFactoryExtensionPoint

All Known Implementing Classes:
DefaultContextFactoryExtensionPoint

public interface ContextFactoryExtensionPoint

An extension point for context factories.


Method Summary
 void addFactory(java.lang.Object factory)
          Add a context factory extension.
<T> T
getFactory(java.lang.Class<T> factoryInterface)
          Get a factory implementing the given interface.
 void removeFactory(java.lang.Object factory)
          Remove a context factory extension.
 

Method Detail

addFactory

void addFactory(java.lang.Object factory)
Add a context factory extension.

Parameters:
factory - The factory to add

removeFactory

void removeFactory(java.lang.Object factory)
Remove a context factory extension.

Parameters:
factory - The factory to remove

getFactory

<T> T getFactory(java.lang.Class<T> factoryInterface)
Get a factory implementing the given interface.

Parameters:
factoryInterface - the lookup key (factory interface)
Returns:
The factory