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 Detail

      • create

        RoutingPolicy create​(java.lang.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.