001/** 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017package org.apache.camel.impl.remote; 018 019import java.util.Collections; 020import java.util.List; 021 022import org.apache.camel.CamelContext; 023import org.apache.camel.CamelContextAware; 024import org.apache.camel.spi.ServiceCallServer; 025import org.apache.camel.spi.ServiceCallServerListStrategy; 026import org.apache.camel.support.ServiceSupport; 027 028 029public class DefaultServiceCallServerListStrategy<T extends ServiceCallServer> 030 extends ServiceSupport implements ServiceCallServerListStrategy<T>, CamelContextAware { 031 032 private CamelContext camelContext; 033 034 @Override 035 public List<T> getInitialListOfServers(String name) { 036 return Collections.emptyList(); 037 } 038 039 @Override 040 public List<T> getUpdatedListOfServers(String name) { 041 return Collections.emptyList(); 042 } 043 044 @Override 045 public void setCamelContext(CamelContext camelContext) { 046 this.camelContext = camelContext; 047 } 048 049 @Override 050 public CamelContext getCamelContext() { 051 return camelContext; 052 } 053 054 @Override 055 protected void doStart() throws Exception { 056 // nop 057 } 058 059 @Override 060 protected void doStop() throws Exception { 061 // nop 062 } 063}