Interface SimpleProtocol.PolicyFactory

All Known Implementing Classes:
CustomPolicyFactory
Enclosing class:
SimpleProtocol

public static interface SimpleProtocol.PolicyFactory
Defines a policy factory interface that tests can use to register arbitrary policies with this protocol.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(String param)
    Creates a new instance of the routing policy that this factory encapsulates.
  • Method Details

    • create

      RoutingPolicy create(String param)
      Creates a new instance of the routing policy that this factory encapsulates.
      Parameters:
      param - The param for the policy constructor.
      Returns:
      The routing policy created.