Package ghidra.framework.plugintool.util
Class AutoServiceListener<R>
java.lang.Object
ghidra.framework.plugintool.util.AutoServiceListener<R>
- All Implemented Interfaces:
ServiceListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static classprotected static classprotected static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AutoServiceListener.ReceiverProfile<R> protected static final Map<Class<?>, AutoServiceListener.ReceiverProfile<?>> protected final Rprotected static final Map<Class<?>, Set<AutoServiceListener.ServiceSetter<?, ?>>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static <R> Set<AutoServiceListener.ServiceSetter<R, ?>> collectSettersByReceiver(Class<R> cls) voidvoidserviceAdded(Class<?> iface, Object service) Notifies the listener that a service has been added to the tool.voidserviceRemoved(Class<?> iface, Object service) Notifies the listener that a service has been removed from the tool.
-
Field Details
-
SETTERS_BY_RECEIVER_CLASS
protected static final Map<Class<?>,Set<AutoServiceListener.ServiceSetter<?, SETTERS_BY_RECEIVER_CLASS?>>> -
PROFILES_BY_RECEIVER_CLASS
protected static final Map<Class<?>,AutoServiceListener.ReceiverProfile<?>> PROFILES_BY_RECEIVER_CLASS -
receiver
-
profile
-
-
Constructor Details
-
AutoServiceListener
-
-
Method Details
-
collectSettersByReceiver
protected static <R> Set<AutoServiceListener.ServiceSetter<R,?>> collectSettersByReceiver(Class<R> cls) -
serviceAdded
Description copied from interface:ServiceListenerNotifies the listener that a service has been added to the tool.- Specified by:
serviceAddedin interfaceServiceListener- Parameters:
iface- the interface class that the given service implements.service- the implementation of the service.
-
serviceRemoved
Description copied from interface:ServiceListenerNotifies the listener that a service has been removed from the tool.- Specified by:
serviceRemovedin interfaceServiceListener- Parameters:
iface- the interface class that the given service implements.service- the implementation of the service.
-
notifyCurrentServices
-