org.kuali.rice.ksb.messaging
Class RunModeServiceExporter

java.lang.Object
  extended by org.kuali.rice.ksb.api.bus.support.ServiceBusExporter
      extended by org.kuali.rice.ksb.api.bus.support.PropertyConditionalServiceBusExporter
          extended by org.kuali.rice.ksb.messaging.RunModeServiceExporter
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class RunModeServiceExporter
extends PropertyConditionalServiceBusExporter

A KSBExporter which will exports the service in the case where the specified run mode is set. The run mode order proceeds as follows:

remote -> embedded -> local

If any of the earlier run modes in the list is set, then the ones after it will be applied. So, if remote is set, then it will automatically be exported for embedded and local run modes.

Author:
Kuali Rice Team (kuali-rice@googlegroups.com)

Constructor Summary
RunModeServiceExporter()
           
 
Method Summary
 String getRunModePropertyName()
           
 RunMode getValidRunMode()
           
 void setRunModePropertyName(String runModePropertyName)
           
 void setValidRunMode(RunMode validRunMode)
           
protected  boolean shouldRemoteThisService()
           
 
Methods inherited from class org.kuali.rice.ksb.api.bus.support.PropertyConditionalServiceBusExporter
afterPropertiesSet, getExportIf, getExportUnless, isExportIfPropertyNotSet, setExportIf, setExportIfPropertyNotSet, setExportUnless
 
Methods inherited from class org.kuali.rice.ksb.api.bus.support.ServiceBusExporter
autoLocateServiceBus, getServiceBus, getServiceDefinition, isForceSync, setForceRefresh, setServiceBus, setServiceDefinition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunModeServiceExporter

public RunModeServiceExporter()
Method Detail

shouldRemoteThisService

protected boolean shouldRemoteThisService()
Overrides:
shouldRemoteThisService in class PropertyConditionalServiceBusExporter

getRunModePropertyName

public String getRunModePropertyName()

setRunModePropertyName

public void setRunModePropertyName(String runModePropertyName)

getValidRunMode

public RunMode getValidRunMode()

setValidRunMode

public void setValidRunMode(RunMode validRunMode)


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.