|
Spring BlazeDS Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.flex.core.AbstractDestinationFactory org.springframework.flex.remoting.RemotingDestinationExporter
public class RemotingDestinationExporter
An factory 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
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
Field Summary |
---|
Fields inherited from interface flex.messaging.FlexFactory |
---|
SCOPE, SCOPE_APPLICATION, SCOPE_REQUEST, SCOPE_SESSION, SOURCE |
Constructor Summary | |
---|---|
RemotingDestinationExporter()
|
Method Summary | |
---|---|
protected Destination |
createDestination(String destinationId,
MessageBroker broker)
Create a specific destination and add it to the MessageBroker |
FactoryInstance |
createFactoryInstance(String id,
ConfigMap properties)
|
protected void |
destroyDestination(String destinationId,
MessageBroker broker)
Stops and removes the specified destination from the MessageBroker |
protected Service |
getTargetService(MessageBroker broker)
Returns the target Service that will manage the destination |
void |
initialize(String id,
ConfigMap configMap)
|
protected void |
initializeDestination(Destination destination)
Perform any necessary initialization logic on the created Destination |
Object |
lookup(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. |
Methods inherited from class org.springframework.flex.core.AbstractDestinationFactory |
---|
afterPropertiesSet, configureAdapter, destroy, getBeanFactory, getDestinationId, setBeanFactory, setBeanName, setChannels, setDestinationId, setMessageBroker, setServiceAdapter, setServletConfig |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemotingDestinationExporter()
Method Detail |
---|
public FactoryInstance createFactoryInstance(String id, ConfigMap properties)
createFactoryInstance
in interface FlexFactory
public void initialize(String id, ConfigMap configMap)
initialize
in interface FlexConfigurable
public Object lookup(FactoryInstance instanceInfo)
lookup
in interface 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 Destination createDestination(String destinationId, MessageBroker broker)
MessageBroker
createDestination
in class AbstractDestinationFactory
destinationId
- the id of the destination to createbroker
- the MessageBroker
where the destination should be created
protected void destroyDestination(String destinationId, MessageBroker broker)
MessageBroker
destroyDestination
in class AbstractDestinationFactory
destinationId
- the id of the destination being destroyedbroker
- the MessageBroker
from which the destination must be removedprotected Service getTargetService(MessageBroker broker)
Service
that will manage the destination
getTargetService
in class AbstractDestinationFactory
broker
- the MessageBroker
that controls the service
protected void initializeDestination(Destination destination)
Destination
initializeDestination
in class AbstractDestinationFactory
destination
- the created destination
|
Spring BlazeDS Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |