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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RoutingPolicy
create(java.lang.String param)
Creates a new instance of the routing policy that this factory encapsulates.
-
-
-
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.
-
-