java.lang.Object
net.i2p.client.I2PClientFactory
Provide a means of hooking into an appropriate I2PClient implementation.
Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionstatic I2PClientCreate a new instance of the appropriate I2PClient.static I2PClientcreateClient(I2PAppContext context) Create a new instance of the appropriate I2PClient with a specific context.
Constructor Details
I2PClientFactory
public I2PClientFactory()Constructor. Clients are always built by the staticcreateClient()for a given context, so an instance carries no state.
Method Details
createClient
Create a new instance of the appropriate I2PClient with a specific context.- Parameters:
context- the I2PAppContext to use- Returns:
- a new
I2PClientImplbound to that context
createClient
Create a new instance of the appropriate I2PClient.- Returns:
- a new
I2PClientImplbound to the global context