org.talend.esb.servicelocator.cxf.internal
Class LocatorClientEnabler

java.lang.Object
  extended by org.talend.esb.servicelocator.cxf.internal.LocatorClientEnabler

public class LocatorClientEnabler
extends Object


Constructor Summary
LocatorClientEnabler()
           
 
Method Summary
 void enable(org.apache.cxf.endpoint.ConduitSelectorHolder conduitSelectorHolder)
           
 void enable(org.apache.cxf.endpoint.ConduitSelectorHolder conduitSelectorHolder, SLPropertiesMatcher matcher)
           
 void enable(org.apache.cxf.endpoint.ConduitSelectorHolder conduitSelectorHolder, SLPropertiesMatcher matcher, String selectionStrategy)
          The selectionStrategy given as String argument is selected as locatorSelectionStrategy.
 void setBus(org.apache.cxf.Bus bus)
           
 void setDefaultLocatorSelectionStrategy(String defaultLocatorSelectionStrategy)
          If the String argument defaultLocatorSelectionStrategy is as key in the map representing the locatorSelectionStrategies, the corresponding strategy is selected and set as default strategy, else both the selected strategy and the default strategy remain unchanged.
 void setLocatorSelectionStrategies(Map<String,LocatorSelectionStrategyFactory> locatorSelectionStrategies)
          Sets a map representing the locatorSelectionStrategies and sets locatorSelectionStrategy to the DEFAULT_STRATEGY.
 void setLocatorSelectionStrategy(String locatorSelectionStrategy)
          If the String argument locatorSelectionStrategy is as key in the map representing the locatorSelectionStrategies, the corresponding strategy is selected, else it remains unchanged.
 void setServiceLocator(ServiceLocator serviceLocator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocatorClientEnabler

public LocatorClientEnabler()
Method Detail

setServiceLocator

public void setServiceLocator(ServiceLocator serviceLocator)

setBus

public void setBus(org.apache.cxf.Bus bus)

setLocatorSelectionStrategies

public void setLocatorSelectionStrategies(Map<String,LocatorSelectionStrategyFactory> locatorSelectionStrategies)
Sets a map representing the locatorSelectionStrategies and sets locatorSelectionStrategy to the DEFAULT_STRATEGY.

Parameters:
locatorSelectionStrategies -

setLocatorSelectionStrategy

public void setLocatorSelectionStrategy(String locatorSelectionStrategy)
If the String argument locatorSelectionStrategy is as key in the map representing the locatorSelectionStrategies, the corresponding strategy is selected, else it remains unchanged.

Parameters:
locatorSelectionStrategy -

setDefaultLocatorSelectionStrategy

public void setDefaultLocatorSelectionStrategy(String defaultLocatorSelectionStrategy)
If the String argument defaultLocatorSelectionStrategy is as key in the map representing the locatorSelectionStrategies, the corresponding strategy is selected and set as default strategy, else both the selected strategy and the default strategy remain unchanged.

Parameters:
defaultLocatorSelectionStrategy -

enable

public void enable(org.apache.cxf.endpoint.ConduitSelectorHolder conduitSelectorHolder)

enable

public void enable(org.apache.cxf.endpoint.ConduitSelectorHolder conduitSelectorHolder,
                   SLPropertiesMatcher matcher)

enable

public void enable(org.apache.cxf.endpoint.ConduitSelectorHolder conduitSelectorHolder,
                   SLPropertiesMatcher matcher,
                   String selectionStrategy)
The selectionStrategy given as String argument is selected as locatorSelectionStrategy. If selectionStrategy is null, the defaultLocatorSelectionStrategy is used instead. Then the new locatorSelectionStrategy is connected to the locatorClient and the matcher. A new LocatorTargetSelector is created, set to the locatorSelectionStrategy and then set as selector in the conduitSelectorHolder.

Parameters:
conduitSelectorHolder -
matcher -
selectionStrategy -


Copyright © 2011–2014 Talend Inc.. All rights reserved.