Class AmqpProxyFactoryBean

  • All Implemented Interfaces:
    Advice, Interceptor, MethodInterceptor, Aware, BeanClassLoaderAware, FactoryBean<java.lang.Object>, InitializingBean

    @Deprecated
    public class AmqpProxyFactoryBean
    extends AmqpClientInterceptor
    implements FactoryBean<java.lang.Object>, InitializingBean
    Deprecated.
    will be removed in 3.0.0.
    FactoryBean for AMQP proxies. Exposes the proxied service for use as a bean reference, using the specified service interface. Proxies will throw Spring's unchecked RemoteAccessException on remote invocation failure.

    This is intended for an "RMI-style" (i.e. synchroneous) usage of the AMQP protocol. Obviously, AMQP allows for a much broader scope of execution styles, which are not the scope of the mechanism at hand.

    Calling a method on the proxy will cause an AMQP message being sent according to the configured AmqpTemplate. This can be received and answered by an AmqpInvokerServiceExporter.

    Since:
    1.2
    Author:
    David Bilge, Gary Russell
    See Also:
    RemoteAccessor.setServiceInterface(java.lang.Class<?>), AmqpClientInterceptor, RmiServiceExporter, RemoteAccessException
    • Constructor Detail

      • AmqpProxyFactoryBean

        public AmqpProxyFactoryBean()
        Deprecated.
    • Method Detail

      • getObject

        public java.lang.Object getObject()
        Deprecated.
        Specified by:
        getObject in interface FactoryBean<java.lang.Object>
      • getObjectType

        public java.lang.Class<?> getObjectType()
        Deprecated.
        Specified by:
        getObjectType in interface FactoryBean<java.lang.Object>
      • isSingleton

        public boolean isSingleton()
        Deprecated.
        Specified by:
        isSingleton in interface FactoryBean<java.lang.Object>