001/*
002 * Copyright 2008 Google Inc.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
005 * use this file except in compliance with the License. You may obtain a copy of
006 * the License at
007 *
008 * http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
013 * License for the specific language governing permissions and limitations under
014 * the License.
015 */
016
017package org.opencms.gwt.rebind.rpc;
018
019import com.google.gwt.core.ext.typeinfo.JClassType;
020import com.google.gwt.user.rebind.rpc.ProxyCreator;
021import com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator;
022
023/**
024 * Creates proxies supporting optionally synchronized RPC methods using the
025 * {@link com.google.gwt.user.client.rpc.SynchronizedRpcRequest} annotation.<p>
026 */
027public class CmsRpcServiceGenerator extends ServiceInterfaceProxyGenerator {
028
029    /**
030     * @see com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator#createProxyCreator(com.google.gwt.core.ext.typeinfo.JClassType)
031     */
032    @Override
033    protected ProxyCreator createProxyCreator(JClassType remoteService) {
034
035        return new CmsRpcProxyCreator(remoteService);
036    }
037}