public class AutowiringClusterSelector extends Object implements ClusterSelector, org.springframework.context.ApplicationContextAware
Ordered
interface to allow custom ordering of selectors. Selectors that do not implement the Ordered
interface, are assumed to have an order of 0.Constructor and Description |
---|
AutowiringClusterSelector() |
Modifier and Type | Method and Description |
---|---|
Cluster |
selectCluster(EventListener eventListener)
Selects the cluster instance that the given
eventListener should be member of. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public Cluster selectCluster(EventListener eventListener)
ClusterSelector
eventListener
should be member of. This may be an existing
(or pre-configured) cluster, as well as a newly created cluster.
When null
is returned, this may cause the Event Listener not to be subscribed to any cluster at all.selectCluster
in interface ClusterSelector
eventListener
- the event listener to select a cluster forpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
Copyright © 2010-2014. All Rights Reserved.