|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.sca.context.DefaultContextFactoryExtensionPoint
public class DefaultContextFactoryExtensionPoint
Default implementation of a model factory extension point.
Constructor Summary | |
---|---|
DefaultContextFactoryExtensionPoint(ExtensionPointRegistry registry)
|
Method Summary | ||
---|---|---|
void |
addFactory(java.lang.Object factory)
Add a model factory extension. |
|
|
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 |
---|
public DefaultContextFactoryExtensionPoint(ExtensionPointRegistry registry)
Method Detail |
---|
public void addFactory(java.lang.Object factory) throws java.lang.IllegalArgumentException
addFactory
in interface ContextFactoryExtensionPoint
factory
- The factory to add.
java.lang.IllegalArgumentException
- if factory is nullpublic void removeFactory(java.lang.Object factory) throws java.lang.IllegalArgumentException
removeFactory
in interface ContextFactoryExtensionPoint
factory
- The factory to remove
java.lang.IllegalArgumentException
- if factory is nullpublic <T> T getFactory(java.lang.Class<T> factoryInterface) throws java.lang.IllegalArgumentException
getFactory
in interface ContextFactoryExtensionPoint
factoryInterface
- The lookup key (factory interface)
java.lang.IllegalArgumentException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |