Class CaseDefault
- java.lang.Object
-
- com.adaptris.core.services.conditional.conditions.CaseDefault
-
- All Implemented Interfaces:
ComponentLifecycle
,Condition
@ComponentProfile(summary="condition that is always true.", tag="condition", since="3.9.0") public class CaseDefault extends java.lang.Object implements Condition
Condition that is always true.The use case for this is to simulate the 'default' branch of a
Switch
service; add this conditional as the lastCondition
configuration in yourSwitch
service to have a default set of services that are executed.In the adapter configuration file this class is aliased as case-default which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description CaseDefault()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(AdaptrisMessage message)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adaptris.core.ComponentLifecycle
close, init, start, stop
-
-
-
-
Method Detail
-
evaluate
public boolean evaluate(AdaptrisMessage message) throws CoreException
- Specified by:
evaluate
in interfaceCondition
- Throws:
CoreException
-
-