p2ps.peer
Interface PeerFactoryInterface
- All Known Implementing Classes:
- DefaultPeerFactory
- public interface PeerFactoryInterface
An interface implemented by factory classes used to create Peer instances.
- Version:
- $Revision: 295 $
- Author:
- Ian Wang
newPeer
public Peer newPeer(Config config,
char[] password)
throws InitializationException,
java.io.IOException
- Returns:
- a new peer instance with the specified config
- Throws:
InitializationException
java.io.IOException
newPeer
public Peer newPeer(Peer parent)
throws InitializationException,
java.io.IOException
- Returns:
- a new peer with the specified parent. The configuration is
taken from the parent with standard modifications such as disabling
discovery pipes.
- Throws:
InitializationException
java.io.IOException