|
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.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(ConfigMap properties)
Creates a new MessageDestinationFactory with the specified properties ConfigMap |
Method Summary | |
---|---|
protected Destination |
createDestination(String destinationId,
MessageBroker broker)
Create a specific destination and add it to the MessageBroker |
protected void |
destroyDestination(String destinationId,
MessageBroker broker)
Stops and removes the specified destination from the MessageBroker |
ConfigMap |
getProperties()
Returns the properties ConfigMap for the destination |
protected Service |
getTargetService(MessageBroker broker)
Returns the target Service that will manage the destination |
protected void |
initializeDestination(Destination destination)
Perform any necessary initialization logic on the created Destination |
void |
setAllowSubtopics(String allow)
|
void |
setClusterMessageRouting(String routingType)
|
void |
setClusterRef(String clusterRef)
|
void |
setDisallowWildcardSubtopics(String disallow)
|
void |
setMessageTimeToLive(String timeToLive)
|
void |
setSendSecurityConstraint(String constraint)
|
void |
setSubscribeSecurityConstraint(String constraint)
|
void |
setSubscriptionTimeoutMinutes(String timeout)
|
void |
setSubtopicSeparator(String separator)
|
void |
setThrottleInboundMaxFrequency(String maxFrequency)
|
void |
setThrottleInboundPolicy(String policy)
|
void |
setThrottleOutboundMaxFrequency(String maxFrequency)
|
void |
setThrottleOutboundPolicy(String policy)
|
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 MessageDestinationFactory()
public MessageDestinationFactory(ConfigMap properties)
ConfigMap
properties
- the properties map for the destinationMethod Detail |
---|
public ConfigMap getProperties()
ConfigMap
for the destination
public void setAllowSubtopics(String allow)
public void setClusterMessageRouting(String routingType)
public void setClusterRef(String clusterRef)
public void setDisallowWildcardSubtopics(String disallow)
public void setMessageTimeToLive(String timeToLive)
public void setSendSecurityConstraint(String constraint)
public void setSubscribeSecurityConstraint(String constraint)
public void setSubscriptionTimeoutMinutes(String timeout)
public void setSubtopicSeparator(String separator)
public void setThrottleInboundMaxFrequency(String maxFrequency)
public void setThrottleInboundPolicy(String policy)
public void setThrottleOutboundMaxFrequency(String maxFrequency)
public void setThrottleOutboundPolicy(String policy)
protected Destination createDestination(String destinationId, MessageBroker broker) throws Exception
MessageBroker
createDestination
in class AbstractDestinationFactory
destinationId
- the id of the destination to createbroker
- the MessageBroker
where the destination should be created
Exception
- if the destination could not be created successfullyprotected 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 |