Package com.yahoo.messagebus.test
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 TypeMethodDescriptionCreates a new instance of the routing policy that this factory encapsulates.
-
Method Details
-
create
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.
-