Package com.hivemq.swarm.extension.sdk
Interface ExtensionRegistry
-
public interface ExtensionRegistry- Since:
- 4.6.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPayloadGenerator(@NotNull String key, @NotNull PayloadGenerator payloadGenerator)Register aPayloadGeneratorwith the specified key.voidaddSecurityProvider(@NotNull String key, @NotNull SecurityProvider securityProvider)Register aSecurityProviderwith the specified key.@Nullable PayloadGeneratorgetPayloadGenerator(@NotNull String key)Retrieve thePayloadGeneratorthat is registered to the specified key.@Nullable SecurityProvidergetSecurityProvider(@NotNull String key)Retrieve theSecurityProviderthat is registered to the specified key.
-
-
-
Method Detail
-
addSecurityProvider
void addSecurityProvider(@NotNull @NotNull String key, @NotNull @NotNull SecurityProvider securityProvider)Register aSecurityProviderwith the specified key. TheSecurityProvidercan then be accessed by the key in the scenario.xml.- Parameters:
key- the key.securityProvider- theSecurityProvider.- Since:
- 4.6.0
-
addPayloadGenerator
void addPayloadGenerator(@NotNull @NotNull String key, @NotNull @NotNull PayloadGenerator payloadGenerator)Register aPayloadGeneratorwith the specified key. ThePayloadGeneratorcan then be accessed by the key in the scenario.xml.- Parameters:
key- the key.payloadGenerator- thePayloadGenerator.- Since:
- 4.6.0
-
getSecurityProvider
@Nullable @Nullable SecurityProvider getSecurityProvider(@NotNull @NotNull String key)
Retrieve theSecurityProviderthat is registered to the specified key. Returnsnullif noSecurityProviderwas registered to that key.- Parameters:
key- the key.- Returns:
- the
SecurityProvideror null. - Since:
- 4.6.0
-
getPayloadGenerator
@Nullable @Nullable PayloadGenerator getPayloadGenerator(@NotNull @NotNull String key)
Retrieve thePayloadGeneratorthat is registered to the specified key. Returnsnullif noPayloadGeneratorwas registered to that key.- Parameters:
key- the key.- Returns:
- the
PayloadGeneratoror null. - Since:
- 4.6.0
-
-