Class ConditionListImpl
- java.lang.Object
-
- com.adaptris.core.services.conditional.conditions.ConditionImpl
-
- com.adaptris.core.services.conditional.conditions.ConditionListImpl
-
- All Implemented Interfaces:
ComponentLifecycle
,Condition
- Direct Known Subclasses:
ConditionAnd
,ConditionOr
public abstract class ConditionListImpl extends ConditionImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
ConditionListImpl.LifecycleOperation
-
Field Summary
-
Fields inherited from class com.adaptris.core.services.conditional.conditions.ConditionImpl
log
-
-
Constructor Summary
Constructors Constructor Description ConditionListImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the component.protected static void
doLifecycle(java.util.List<Condition> list, ConditionListImpl.LifecycleOperation p)
protected static void
doLifecycleQuietly(java.util.List<Condition> list, ConditionListImpl.LifecycleOperation p)
java.util.List<Condition>
getConditions()
void
init()
Initialises the component.void
setConditions(java.util.List<Condition> conditions)
void
start()
Starts the component.void
stop()
Stop the component<T extends ConditionListImpl>
TwithConditions(Condition... conditions)
-
Methods inherited from class com.adaptris.core.services.conditional.conditions.ConditionImpl
getAdditionalLogging, logCondition, setAdditionalLogging
-
-
-
-
Method Detail
-
init
public void init() throws CoreException
Description copied from interface:ComponentLifecycle
Initialises the component.Component initialisation includes config verification, creation of connections etc.
- Throws:
CoreException
- wrapping any underlyingException
s
-
start
public void start() throws CoreException
Description copied from interface:ComponentLifecycle
Starts the component.Once a component is started it should be ready to process messages. In the case of
AdaptrisMessageConsumer
, calling start will begin message delivery.- Throws:
CoreException
- wrapping any underlyingException
s
-
stop
public void stop()
Description copied from interface:ComponentLifecycle
Stop the componentA stopped component is not expected to be ready to process messages. In the case of
AdaptrisMessageConsumer
, calling stop will pause message delivery. Throwing aRuntimeException
may cause unintended consequences
-
close
public void close()
Description copied from interface:ComponentLifecycle
Closes the component.A closed component should release any connections it uses, etc. and clean up completely. Throwing a
RuntimeException
may cause unintended consequences
-
getConditions
public java.util.List<Condition> getConditions()
-
setConditions
public void setConditions(java.util.List<Condition> conditions)
-
withConditions
public <T extends ConditionListImpl> T withConditions(Condition... conditions)
-
doLifecycle
protected static void doLifecycle(java.util.List<Condition> list, ConditionListImpl.LifecycleOperation p) throws CoreException
- Throws:
CoreException
-
doLifecycleQuietly
protected static void doLifecycleQuietly(java.util.List<Condition> list, ConditionListImpl.LifecycleOperation p)
-
-