Interface BabelProtocolFactory<T extends BabelProtocol>
- Type Parameters:
T- the specificBabelProtocoltype 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 TypeMethodDescriptioncreateInstance(Properties properties) Creates a new protocol instance using the supplied configuration properties.
-
Method Details
-
createInstance
Creates a new protocol instance using the supplied configuration properties.- Parameters:
properties- aPropertiesmap containing key/value configuration entries consumed by the protocol- Returns:
- a configured protocol instance; must not be
null
-