|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sca.core.DefaultExtensionPointRegistry
public class DefaultExtensionPointRegistry
Default implementation of a registry to hold all the Tuscany core extension points. As the point of contact for all extension artifacts this registry allows loaded extensions to find all other parts of the system and register themselves appropriately.
Constructor Summary | |
---|---|
DefaultExtensionPointRegistry()
Constructs a new registry. |
Method Summary | ||
---|---|---|
void |
addExtensionPoint(java.lang.Object extensionPoint)
Add an extension point to the registry. |
|
|
getExtensionPoint(java.lang.Class<T> extensionPointType)
Get the extension point by the interface that it implements |
|
void |
removeExtensionPoint(java.lang.Object extensionPoint)
Remove an extension point based on the interface that it implements |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultExtensionPointRegistry()
Method Detail |
---|
public void addExtensionPoint(java.lang.Object extensionPoint)
addExtensionPoint
in interface ExtensionPointRegistry
extensionPoint
- The instance of the extension point
java.lang.IllegalArgumentException
- if extensionPoint is nullpublic <T> T getExtensionPoint(java.lang.Class<T> extensionPointType)
getExtensionPoint
in interface ExtensionPointRegistry
extensionPointType
- The lookup key (extension point interface)
java.lang.IllegalArgumentException
- if extensionPointType is nullpublic void removeExtensionPoint(java.lang.Object extensionPoint)
removeExtensionPoint
in interface ExtensionPointRegistry
extensionPoint
- The extension point to remove
java.lang.IllegalArgumentException
- if extensionPoint is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |