org.springframework.flex.messaging.remoting
Class FlexRemotingServiceExporter
java.lang.Object
org.springframework.flex.messaging.remoting.FlexRemotingServiceExporter
- All Implemented Interfaces:
- flex.messaging.FlexConfigurable, flex.messaging.FlexFactory, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
public class FlexRemotingServiceExporter
- extends java.lang.Object
- implements flex.messaging.FlexFactory, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.BeanNameAware
An exporter for exposing a Spring-managed bean to a Flex client for direct
remoting calls.
The exported service will be exposed to the Flex client as a BlazeDS remoting
service destination. By default, the service id of the destination will be
the same as the bean name of this exporter. This may be overridden using the
serviceId property. Note that this convention is slightly different from
that employed by the remote-service xml config tag. See the xsd
docs for details.
The methods on the exported service that are exposed to the Flex client can
be controlled using the includeMethods and excludeMethods properties.
- Author:
- Jeremy Grelle
- See Also:
MessageBrokerFactoryBean
| Fields inherited from interface flex.messaging.FlexFactory |
SCOPE, SCOPE_APPLICATION, SCOPE_REQUEST, SCOPE_SESSION, SOURCE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlexRemotingServiceExporter
public FlexRemotingServiceExporter()
setBeanName
public void setBeanName(java.lang.String name)
- Specified by:
setBeanName in interface org.springframework.beans.factory.BeanNameAware
setMessageBroker
public void setMessageBroker(flex.messaging.MessageBroker broker)
setService
public void setService(java.lang.Object service)
setServiceId
public void setServiceId(java.lang.String serviceId)
setChannels
public void setChannels(java.lang.String[] channels)
setIncludeMethods
public void setIncludeMethods(java.lang.String[] includeMethods)
setExcludeMethods
public void setExcludeMethods(java.lang.String[] excludeMethods)
createFactoryInstance
public flex.messaging.FactoryInstance createFactoryInstance(java.lang.String id,
flex.messaging.config.ConfigMap properties)
- Specified by:
createFactoryInstance in interface flex.messaging.FlexFactory
lookup
public java.lang.Object lookup(flex.messaging.FactoryInstance instanceInfo)
- Lookup will be handled directly by the created FactoryInstance
- Specified by:
lookup in interface flex.messaging.FlexFactory
initialize
public void initialize(java.lang.String id,
flex.messaging.config.ConfigMap configMap)
- Specified by:
initialize in interface flex.messaging.FlexConfigurable
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
destroy
public void destroy()
throws java.lang.Exception
- Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
- Throws:
java.lang.Exception