/* * (C) Copyright 2013 Kurento (http://kurento.org/) * * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser General Public License * (LGPL) version 2.1 which accompanies this distribution, and is available at * http://www.gnu.org/licenses/lgpl-2.1.html * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * */ package com.kurento.kmf.thrift.pool; import javax.annotation.PostConstruct; import org.springframework.beans.factory.annotation.Autowired; import com.kurento.kmf.thrift.ThriftInterfaceConfiguration; import com.kurento.kms.thrift.api.KmsMediaServerService.Client; public class ThriftSyncClientPool extends AbstractPool<Client> { @Autowired private ThriftSyncClientFactory syncFactory; /** * Default constructor, to be used in spring environments */ public ThriftSyncClientPool() { } /** * Constructor for non-spring environments. * * @param syncFactory * the factory that builds sync clients * @param cfg * configuration object */ public ThriftSyncClientPool(ThriftSyncClientFactory syncFactory, ThriftInterfaceConfiguration cfg) { super(cfg); this.syncFactory = syncFactory; init(); } @PostConstruct private void init() { super.init(syncFactory); } }