Package ghidra.framework.plugintool
Annotation Interface ServiceInfo
Meta-data about a Plugin's Service.
Example:
@ServiceInfo( defaultProvider = MyPlugin.class ) public interface MyService { public void foo(); }
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionSets the class that provides the default implementation of this service.Sets the class name of the class that provides the default implementation of this service.Sets the description for this service.
-
Element Details
-
defaultProviderName
String defaultProviderNameSets the class name of the class that provides the default implementation of this service.Use this form instead of
defaultProvider = Someclass.class
if you want to prevent any form of reference between the service class and the implementation class.For example,
defaultProviderName = "packageX.subPackageY.SomeClass"
Using
defaultProviderName = packageX.subPackageY.SomeClass.class.getName()
will not work (value needs to be a constant expression).- Returns:
- full package and classname string of the plugin class that provides this service.
- Default:
""
-
defaultProvider
Sets the class that provides the default implementation of this service.- Returns:
- Class instance of the plugin that provides this service.
- Default:
{}
-
description
String descriptionSets the description for this service.Currently not used.
- Returns:
- string description of this service.
- Default:
""
-