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 void
addPayloadGenerator(@NotNull String key, @NotNull PayloadGenerator payloadGenerator)
Register aPayloadGenerator
with the specified key.void
addSecurityProvider(@NotNull String key, @NotNull SecurityProvider securityProvider)
Register aSecurityProvider
with the specified key.@Nullable PayloadGenerator
getPayloadGenerator(@NotNull String key)
Retrieve thePayloadGenerator
that is registered to the specified key.@Nullable SecurityProvider
getSecurityProvider(@NotNull String key)
Retrieve theSecurityProvider
that is registered to the specified key.
-
-
-
Method Detail
-
addSecurityProvider
void addSecurityProvider(@NotNull @NotNull String key, @NotNull @NotNull SecurityProvider securityProvider)
Register aSecurityProvider
with the specified key. TheSecurityProvider
can 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 aPayloadGenerator
with the specified key. ThePayloadGenerator
can 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 theSecurityProvider
that is registered to the specified key. Returnsnull
if noSecurityProvider
was registered to that key.- Parameters:
key
- the key.- Returns:
- the
SecurityProvider
or null. - Since:
- 4.6.0
-
getPayloadGenerator
@Nullable @Nullable PayloadGenerator getPayloadGenerator(@NotNull @NotNull String key)
Retrieve thePayloadGenerator
that is registered to the specified key. Returnsnull
if noPayloadGenerator
was registered to that key.- Parameters:
key
- the key.- Returns:
- the
PayloadGenerator
or null. - Since:
- 4.6.0
-
-