001/* 002 * Copyright 2002-2013 the original author or authors. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * https://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, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017package org.springframework.remoting.caucho; 018 019import org.springframework.aop.framework.ProxyFactory; 020import org.springframework.beans.factory.FactoryBean; 021 022/** 023 * {@link FactoryBean} for Burlap proxies. Exposes the proxied service 024 * for use as a bean reference, using the specified service interface. 025 * 026 * <p>Burlap is a slim, XML-based RPC protocol. 027 * For information on Burlap, see the 028 * <a href="https://www.caucho.com/burlap">Burlap website</a> 029 * 030 * <p>The service URL must be an HTTP URL exposing a Burlap service. 031 * For details, see the {@link BurlapClientInterceptor} javadoc. 032 * 033 * @author Juergen Hoeller 034 * @since 13.05.2003 035 * @see #setServiceInterface 036 * @see #setServiceUrl 037 * @see BurlapClientInterceptor 038 * @see BurlapServiceExporter 039 * @see org.springframework.remoting.caucho.HessianProxyFactoryBean 040 * @see org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean 041 * @see org.springframework.remoting.rmi.RmiProxyFactoryBean 042 * @deprecated as of Spring 4.0, since Burlap hasn't evolved in years 043 * and is effectively retired (in contrast to its sibling Hessian) 044 */ 045@Deprecated 046public class BurlapProxyFactoryBean extends BurlapClientInterceptor implements FactoryBean<Object> { 047 048 private Object serviceProxy; 049 050 051 @Override 052 public void afterPropertiesSet() { 053 super.afterPropertiesSet(); 054 this.serviceProxy = new ProxyFactory(getServiceInterface(), this).getProxy(getBeanClassLoader()); 055 } 056 057 058 @Override 059 public Object getObject() { 060 return this.serviceProxy; 061 } 062 063 @Override 064 public Class<?> getObjectType() { 065 return getServiceInterface(); 066 } 067 068 @Override 069 public boolean isSingleton() { 070 return true; 071 } 072 073}