Apache Tuscany SCA Core SPI

org.apache.tuscany.sca.core
Class DefaultModelFactoryExtensionPoint

java.lang.Object
  extended by org.apache.tuscany.sca.core.DefaultModelFactoryExtensionPoint
All Implemented Interfaces:
ModelFactoryExtensionPoint

public class DefaultModelFactoryExtensionPoint
extends java.lang.Object
implements ModelFactoryExtensionPoint

Default implementation of a model factory extension point.

Version:
$Rev: 539359 $ $Date: 2007-05-18 11:06:21 +0100 (Fri, 18 May 2007) $

Constructor Summary
DefaultModelFactoryExtensionPoint()
           
 
Method Summary
 void addFactory(java.lang.Object factory)
          Add a model 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 model factory extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultModelFactoryExtensionPoint

public DefaultModelFactoryExtensionPoint()
Method Detail

addFactory

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

Specified by:
addFactory in interface ModelFactoryExtensionPoint
Parameters:
factory - The factory to add

removeFactory

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

Specified by:
removeFactory in interface ModelFactoryExtensionPoint
Parameters:
factory - The factory to remove

getFactory

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

Specified by:
getFactory in interface ModelFactoryExtensionPoint
Parameters:
factoryInterface - The lookup key (factory interface)
Returns:
The factory

Apache Tuscany SCA Core SPI

Apache Tuscany is an effort undergoing incubation at the Apache Software Foundation(ASF) and sponsored by the Apache WS PMC.