public class SwitchPredicate extends java.lang.Object implements org.springframework.beans.factory.InitializingBean, Predicate
| Constructor and Description |
|---|
SwitchPredicate() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
createResource(java.lang.String resource) |
boolean |
getFromExchange() |
java.lang.String |
getPropertyName() |
org.springframework.core.io.Resource |
getPropertyResource() |
boolean |
isOn() |
boolean |
matches(javax.jbi.messaging.MessageExchange exchange) |
void |
setFromExchange(boolean fromExchange)
Boolean flag indicating that the value is retrieved from the exchange properties.
|
void |
setOn(boolean status)
Default value of this predicate
|
void |
setPropertyName(java.lang.String newPropertyName)
The name of the property to retrieve
|
void |
setPropertyResource(org.springframework.core.io.Resource newPropertyResource)
A spring resource to load a set of properties from.
|
java.lang.String |
showResource() |
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic boolean isOn()
public void setOn(boolean status)
public java.lang.String getPropertyName()
public void setPropertyName(java.lang.String newPropertyName)
public org.springframework.core.io.Resource getPropertyResource()
public void setPropertyResource(org.springframework.core.io.Resource newPropertyResource)
public boolean getFromExchange()
public void setFromExchange(boolean fromExchange)
public void createResource(java.lang.String resource)
public java.lang.String showResource()
throws java.io.IOException
java.io.IOExceptionCopyright © 2005-2015 FuseSource. All Rights Reserved.