|
|||||||||
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.messaging.MessageDestinationFactory
public class MessageDestinationFactory
A factory for Flex MessageDestinations that can be configured with a Spring-managed MessagingAdapter instance.
The destination will be exposed to the Flex client as a BlazeDS MessageDestination
. By default, the id of the
destination will be the same as the bean name of this factory. This may be overridden using the
'destinationId'
property.
MessageBrokerFactoryBean
Constructor Summary | |
---|---|
MessageDestinationFactory()
Creates a new MessageDestinationFactory |
|
MessageDestinationFactory(flex.messaging.config.ConfigMap properties)
Creates a new MessageDestinationFactory with the specified properties ConfigMap |
Method Summary | |
---|---|
protected flex.messaging.Destination |
createDestination(java.lang.String destinationId,
flex.messaging.MessageBroker broker)
Create a specific destination and add it to the MessageBroker |
protected void |
destroyDestination(java.lang.String destinationId,
flex.messaging.MessageBroker broker)
Stops and removes the specified destination from the MessageBroker |
flex.messaging.config.ConfigMap |
getProperties()
Returns the properties ConfigMap for the destination |
protected flex.messaging.services.Service |
getTargetService(flex.messaging.MessageBroker broker)
Returns the target Service that will manage the destination |
protected void |
initializeDestination(flex.messaging.Destination destination)
Perform any necessary initialization logic on the created Destination |
void |
setAllowSubtopics(java.lang.String allow)
|
void |
setClusterMessageRouting(java.lang.String routingType)
|
void |
setMessageTimeToLive(java.lang.String timeToLive)
|
void |
setSendSecurityConstraint(java.lang.String constraint)
|
void |
setSubscribeSecurityConstraint(java.lang.String constraint)
|
void |
setSubscriptionTimeoutMinutes(java.lang.String timeout)
|
void |
setSubtopicSeparator(java.lang.String separator)
|
void |
setThrottleInboundMaxFrequency(java.lang.String maxFrequency)
|
void |
setThrottleInboundPolicy(java.lang.String policy)
|
void |
setThrottleOutboundMaxFrequency(java.lang.String maxFrequency)
|
void |
setThrottleOutboundPolicy(java.lang.String policy)
|
Methods inherited from class org.springframework.flex.core.AbstractDestinationFactory |
---|
afterPropertiesSet, configureAdapter, destroy, getBeanFactory, getDestinationId, setBeanFactory, setBeanName, setChannels, setDestinationId, setMessageBroker, setServiceAdapter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageDestinationFactory()
public MessageDestinationFactory(flex.messaging.config.ConfigMap properties)
ConfigMap
properties
- the properties map for the destinationMethod Detail |
---|
public flex.messaging.config.ConfigMap getProperties()
ConfigMap
for the destination
public void setAllowSubtopics(java.lang.String allow)
public void setClusterMessageRouting(java.lang.String routingType)
public void setMessageTimeToLive(java.lang.String timeToLive)
public void setSendSecurityConstraint(java.lang.String constraint)
public void setSubscribeSecurityConstraint(java.lang.String constraint)
public void setSubscriptionTimeoutMinutes(java.lang.String timeout)
public void setSubtopicSeparator(java.lang.String separator)
public void setThrottleInboundMaxFrequency(java.lang.String maxFrequency)
public void setThrottleInboundPolicy(java.lang.String policy)
public void setThrottleOutboundMaxFrequency(java.lang.String maxFrequency)
public void setThrottleOutboundPolicy(java.lang.String policy)
protected flex.messaging.Destination createDestination(java.lang.String destinationId, flex.messaging.MessageBroker broker) throws java.lang.Exception
MessageBroker
createDestination
in class AbstractDestinationFactory
destinationId
- the id of the destination to createbroker
- the MessageBroker
where the destination should be created
java.lang.Exception
- if the destination could not be created successfullyprotected void destroyDestination(java.lang.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 destination
getTargetService
in class AbstractDestinationFactory
broker
- the MessageBroker
that controls the service
protected void initializeDestination(flex.messaging.Destination destination)
Destination
initializeDestination
in class AbstractDestinationFactory
destination
- the created destination
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |