Package org.robwork.sdurw_core
Class ExtensionRegistry
- java.lang.Object
-
- org.robwork.sdurw_core.ExtensionRegistry
-
public class ExtensionRegistry extends java.lang.Object
an extension point is a class that defines a point where Extension can be added.
This is typically used together with plugins, however any class may register extensions
to an extension point.
-
-
Constructor Summary
Constructors Constructor Description ExtensionRegistry()
ConstructorExtensionRegistry(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearExtensions()
Unregister all extensions.void
delete()
static long
getCPtr(ExtensionRegistry obj)
SWIGTYPE_p_std__vectorT_rw__core__Extension__Descriptor_t
getExtensionDescriptors(java.lang.String ext_point_id)
get all descriptors registered for a specific extension point idVectorExtensionPtr
getExtensions(java.lang.String ext_point_id)
get all extensions of a specific extension pointstatic SWIGTYPE_p_rw__core__PtrT_rw__core__ExtensionRegistry_t
getInstance()
get registry instanceSWIGTYPE_p_std__vectorT_rw__core__PtrT_rw__core__Plugin_t_t
getPlugins()
get a list of registered pluginsvoid
registerExtensions(PluginPtr plugin)
register extensions and extension points of a pluginvoid
unregisterExtensions(PluginPtr plugin)
Unregister extensions and extension points of a plugin.
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(ExtensionRegistry obj)
-
delete
public void delete()
-
getInstance
public static SWIGTYPE_p_rw__core__PtrT_rw__core__ExtensionRegistry_t getInstance()
get registry instance
-
getExtensionDescriptors
public SWIGTYPE_p_std__vectorT_rw__core__Extension__Descriptor_t getExtensionDescriptors(java.lang.String ext_point_id)
get all descriptors registered for a specific extension point id- Parameters:
ext_point_id
- [in] identifier of extension point- Returns:
- list of extension point descriptions
-
getExtensions
public VectorExtensionPtr getExtensions(java.lang.String ext_point_id)
get all extensions of a specific extension point- Parameters:
ext_point_id
- [in] identifier of extension point- Returns:
- list of extensions
-
registerExtensions
public void registerExtensions(PluginPtr plugin)
register extensions and extension points of a plugin- Parameters:
plugin
- [in] the plugin that is to be registered
-
unregisterExtensions
public void unregisterExtensions(PluginPtr plugin)
Unregister extensions and extension points of a plugin.- Parameters:
plugin
- [in] the plugin that is to be removed.
-
clearExtensions
public void clearExtensions()
Unregister all extensions.
-
getPlugins
public SWIGTYPE_p_std__vectorT_rw__core__PtrT_rw__core__Plugin_t_t getPlugins()
get a list of registered plugins- Returns:
- list of plugins
-
-