public class RemotingDestinationExporter extends AbstractDestinationFactory implements flex.messaging.FlexFactory
The exported service will be exposed to the Flex client as a BlazeDS remoting service destination. By default, the
destination id will be the same as the bean name of this factory. 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.
MessageBrokerFactoryBean
Constructor and Description |
---|
RemotingDestinationExporter() |
Modifier and Type | Method and Description |
---|---|
protected flex.messaging.Destination |
createDestination(String destinationId,
flex.messaging.MessageBroker broker)
Create a specific destination and add it to the
MessageBroker |
flex.messaging.FactoryInstance |
createFactoryInstance(String id,
flex.messaging.config.ConfigMap properties) |
protected void |
destroyDestination(String destinationId,
flex.messaging.MessageBroker broker)
Stops and removes the specified destination from the
MessageBroker |
protected flex.messaging.services.Service |
getTargetService(flex.messaging.MessageBroker broker)
Returns the target
Service that will manage the destination |
void |
initialize(String id,
flex.messaging.config.ConfigMap configMap) |
protected void |
initializeDestination(flex.messaging.Destination destination)
Perform any necessary initialization logic on the created
Destination |
Object |
lookup(flex.messaging.FactoryInstance instanceInfo)
Lookup will be handled directly by the created FactoryInstance
|
void |
setExcludeMethods(String[] excludeMethods)
Sets the methods to be excluded from the bean being exported
|
void |
setIncludeMethods(String[] includeMethods)
Sets the methods to included from the bean being exported
|
void |
setService(Object service)
Sets the bean being exported.
|
afterPropertiesSet, configureAdapter, destroy, getBeanFactory, getDestinationId, setBeanFactory, setBeanName, setChannels, setDestinationId, setMessageBroker, setServiceAdapter, setServletConfig
public flex.messaging.FactoryInstance createFactoryInstance(String id, flex.messaging.config.ConfigMap properties)
createFactoryInstance
in interface flex.messaging.FlexFactory
public void initialize(String id, flex.messaging.config.ConfigMap configMap)
initialize
in interface flex.messaging.FlexConfigurable
public Object lookup(flex.messaging.FactoryInstance instanceInfo)
lookup
in interface flex.messaging.FlexFactory
public void setExcludeMethods(String[] excludeMethods)
excludeMethods
- the methods to excludepublic void setIncludeMethods(String[] includeMethods)
includeMethods
- the methods to includepublic void setService(Object service)
service
- the bean being exportedprotected flex.messaging.Destination createDestination(String destinationId, flex.messaging.MessageBroker broker)
MessageBroker
createDestination
in class AbstractDestinationFactory
destinationId
- the id of the destination to createbroker
- the MessageBroker
where the destination should be createdprotected void destroyDestination(String destinationId, flex.messaging.MessageBroker broker)
MessageBroker
destroyDestination
in class AbstractDestinationFactory
destinationId
- the id of the destination being destroyedbroker
- the MessageBroker
from which the destination must be removedprotected flex.messaging.services.Service getTargetService(flex.messaging.MessageBroker broker)
Service
that will manage the destinationgetTargetService
in class AbstractDestinationFactory
broker
- the MessageBroker
that controls the serviceprotected void initializeDestination(flex.messaging.Destination destination)
Destination
initializeDestination
in class AbstractDestinationFactory
destination
- the created destinationCopyright © 2014. All rights reserved.