Interface ProtocolAdapterFactory<E extends ProtocolAdapterConfig>


  • public interface ProtocolAdapterFactory<E extends ProtocolAdapterConfig>
    The factory is responsible for constructing and managing the lifecycle of the various aspects of the adapter sub-systems. We bind this to the configuration types to we can provide tightly coupled implementation instances responsible for adapter management.
    • Method Detail

      • getInformation

        @NotNull
        @NotNull ProtocolAdapterInformation getInformation()
        Returns Metadata related to the protocol adapter instance, including descriptions, iconography, categorisation et al
        Returns:
        the instance that provides the adapter information
      • convertConfigObject

        @NotNull
        default E convertConfigObject​(@NotNull
                                      @NotNull com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                      @NotNull
                                      @NotNull Map<String,​Object> config)
        Parameters:
        objectMapper - the object mapper that converts the map to the actual config
        config - a map containing the configuration of the adapter
        Returns:
        a parsed confif object for this adapter
      • getConfigClass

        @NotNull
        @NotNull Class<E> getConfigClass()
        A bean class that will be reflected upon by the framework to determine the structural requirements of the configuration associated with an adapter instance. It is expected that the bean class supplied, be marked up with
        Returns:
        The class that represents (and will encapsulate) the configuration requirements of the adapter \\@ModuleConfigField annotations.