org.kuali.rice.ksb.messaging
Class PropertyConditionalKSBExporter

java.lang.Object
  extended by org.kuali.rice.ksb.messaging.KSBExporter
      extended by org.kuali.rice.ksb.messaging.PropertyConditionalKSBExporter
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
RunModeServiceExporter

public class PropertyConditionalKSBExporter
extends KSBExporter

A KSBExporter which only exports the service if the specified property is set to true.

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

Field Summary
private  List<String> exportIf
           
private  boolean exportIfPropertyNotSet
           
private  List<String> exportUnless
           
 
Fields inherited from class org.kuali.rice.ksb.messaging.KSBExporter
applicationContext, remotedServiceRegistry
 
Constructor Summary
PropertyConditionalKSBExporter()
           
 
Method Summary
 void afterPropertiesSet()
           
 List getExportIf()
           
 List getExportUnless()
           
 boolean isExportIfPropertyNotSet()
           
 void setExportIf(List exportIf)
           
 void setExportIfPropertyNotSet(boolean exportIfPropertyNotSet)
           
 void setExportUnless(List exportUnless)
           
protected  boolean shouldRemoteThisService()
           
 
Methods inherited from class org.kuali.rice.ksb.messaging.KSBExporter
getRemotedServiceRegistry, getServiceDefinition, isForceRefresh, setApplicationContext, setForceRefresh, setRemotedServiceRegistry, setServiceDefinition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exportIf

private List<String> exportIf

exportUnless

private List<String> exportUnless

exportIfPropertyNotSet

private boolean exportIfPropertyNotSet
Constructor Detail

PropertyConditionalKSBExporter

public PropertyConditionalKSBExporter()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class KSBExporter
Throws:
Exception

shouldRemoteThisService

protected boolean shouldRemoteThisService()
                                   throws Exception
Throws:
Exception

getExportIf

public List getExportIf()

setExportIf

public void setExportIf(List exportIf)
                 throws org.springframework.beans.factory.BeanInitializationException
Throws:
org.springframework.beans.factory.BeanInitializationException

getExportUnless

public List getExportUnless()

setExportUnless

public void setExportUnless(List exportUnless)
                     throws org.springframework.beans.factory.BeanInitializationException
Throws:
org.springframework.beans.factory.BeanInitializationException

isExportIfPropertyNotSet

public boolean isExportIfPropertyNotSet()

setExportIfPropertyNotSet

public void setExportIfPropertyNotSet(boolean exportIfPropertyNotSet)


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