diff options
Diffstat (limited to 'src/com/isode/stroke/network/DummyConnectionFactory.java')
-rw-r--r-- | src/com/isode/stroke/network/DummyConnectionFactory.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/com/isode/stroke/network/DummyConnectionFactory.java b/src/com/isode/stroke/network/DummyConnectionFactory.java new file mode 100644 index 0000000..e8ff755 --- /dev/null +++ b/src/com/isode/stroke/network/DummyConnectionFactory.java @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2011 Tobias Markmann + * Licensed under the simplified BSD license. + * See Documentation/Licenses/BSD-simplified.txt for more information. + */ +/* + * Copyright (c) 2015 Tarun Gupta. + * Licensed under the simplified BSD license. + * See Documentation/Licenses/BSD-simplified.txt for more information. + */ + +package com.isode.stroke.network; + +import com.isode.stroke.eventloop.EventLoop; + +public class DummyConnectionFactory implements ConnectionFactory { + + private EventLoop eventLoop; + + public DummyConnectionFactory(EventLoop eventLoop) { + this.eventLoop = eventLoop; + } + + public Connection createConnection() { + return new DummyConnection(eventLoop); + } +}
\ No newline at end of file |