Package ghidra.framework.plugintool
Interface ServiceProvider
- 
- All Known Implementing Classes:
- FrontEndTool,- GhidraTool,- ModalPluginTool,- PluginTool,- ServiceProviderDecorator,- ServiceProviderStub,- StandAlonePluginTool,- TestFrontEndTool,- TestTool
 
 public interface ServiceProviderInterface for providing Services
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddServiceListener(ServiceListener listener)Adds a listener that will be called as services are added and removed from this ServiceProvider.<T> TgetService(java.lang.Class<T> serviceClass)Returns the Service object that implements the given service interface.voidremoveServiceListener(ServiceListener listener)Removes the given listener from this ServiceProvider.
 
- 
- 
- 
Method Detail- 
getService<T> T getService(java.lang.Class<T> serviceClass) Returns the Service object that implements the given service interface.- Parameters:
- serviceClass- the interface class.
 
 - 
addServiceListenervoid addServiceListener(ServiceListener listener) Adds a listener that will be called as services are added and removed from this ServiceProvider.- Parameters:
- listener- The listener to add.
 
 - 
removeServiceListenervoid removeServiceListener(ServiceListener listener) Removes the given listener from this ServiceProvider. This method does nothing if the given listener is not contained by this ServiceProvider.- Parameters:
- listener-
 
 
- 
 
-