Package ghidra.framework.plugintool
Class ServiceProviderStub
java.lang.Object
ghidra.framework.plugintool.ServiceProviderStub
- All Implemented Interfaces:
ServiceProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addServiceListener
(ServiceListener listener) Adds a listener that will be called as services are added and removed from this ServiceProvider.<T> T
getService
(Class<T> serviceClass) Returns the Service object that implements the given service interface.void
removeServiceListener
(ServiceListener listener) Removes the given listener from this ServiceProvider.
-
Constructor Details
-
ServiceProviderStub
public ServiceProviderStub()
-
-
Method Details
-
getService
Description copied from interface:ServiceProvider
Returns the Service object that implements the given service interface.- Specified by:
getService
in interfaceServiceProvider
- Parameters:
serviceClass
- the interface class.
-
addServiceListener
Description copied from interface:ServiceProvider
Adds a listener that will be called as services are added and removed from this ServiceProvider.- Specified by:
addServiceListener
in interfaceServiceProvider
- Parameters:
listener
- The listener to add.
-
removeServiceListener
Description copied from interface:ServiceProvider
Removes the given listener from this ServiceProvider. This method does nothing if the given listener is not contained by this ServiceProvider.- Specified by:
removeServiceListener
in interfaceServiceProvider
- Parameters:
listener
-
-