Interface BabelProtocolFactory<T extends BabelProtocol>

Type Parameters:
T - the specific BabelProtocol type this factory produces

public interface BabelProtocolFactory<T extends BabelProtocol>
Factory interface for creating BabelProtocol instances from a Properties configuration object.

Implement this interface to encapsulate the construction logic of a protocol so that the caller does not need to know the concrete class. The properties parameter typically originates from BabelPropertiesReader.

  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new protocol instance using the supplied configuration properties.
  • Method Details

    • createInstance

      T createInstance(Properties properties)
      Creates a new protocol instance using the supplied configuration properties.
      Parameters:
      properties - a Properties map containing key/value configuration entries consumed by the protocol
      Returns:
      a configured protocol instance; must not be null