blob: ace90a233bf9e32b0936ea68f1f6d8e9e9492554 [file] [log] [blame]
Mark Slee5e707a62007-06-01 23:04:09 +00001// Copyright (c) 2006- Facebook
2// Distributed under the Thrift Software License
3//
4// See accompanying file LICENSE or visit the Thrift site at:
5// http://developers.facebook.com/thrift/
6
7package com.facebook.thrift;
8
9import com.facebook.thrift.transport.TTransport;
10
11/**
12 * The default processor factory just returns a singleton
13 * instance.
14 */
15public class TProcessorFactory {
16
17 private final TProcessor processor_;
18
19 public TProcessorFactory(TProcessor processor) {
20 processor_ = processor;
21 }
22
23 public TProcessor getProcessor(TTransport trans) {
24 return processor_;
25 }
26}