public class URIExecutor extends Object implements CollectionBasedInstructionExecutor
URIInstruction
could be handled.Constructor and Description |
---|
URIExecutor() |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute(Instruction instruction,
Collection<Object> contextObjects)
Indicates whether or not this instance is able to execute the given
Instruction , using
the given context object where necessary. |
void |
execute(Instruction instruction,
Collection<Object> contextObjects)
Perform that which is described by the given
Instruction . |
boolean |
pertainsTo(Class<? extends Instruction> clazz)
Returns whether or not this
InstructionExecutor knows how to deal with a given type of
Instruction . |
public boolean pertainsTo(Class<? extends Instruction> clazz)
InstructionExecutor
InstructionExecutor
knows how to deal with a given type of
Instruction
.pertainsTo
in interface InstructionExecutor<Collection<Object>>
clazz
- the type of Instruction
for which information is requestedtrue
if this InstructionExecutor
is able to handle
Instruction
s of the given type, false
otherwise.public boolean canExecute(Instruction instruction, Collection<Object> contextObjects)
InstructionExecutor
Instruction
, using
the given context object where necessary.canExecute
in interface InstructionExecutor<Collection<Object>>
instruction
- the instruction in questioncontextObjects
- holds additional, implementation-specific informationtrue
if this instance is able to execute the given Instruction
using the given context object where necessary; false
otherwise.public void execute(Instruction instruction, Collection<Object> contextObjects)
InstructionExecutor
Instruction
.execute
in interface InstructionExecutor<Collection<Object>>
instruction
- holds the information which specifies what to performcontextObjects
- holds additional, implementation-specific informationCopyright © 2024 levigo holding gmbh. All rights reserved.