Class URIInstructionExecutor
java.lang.Object
com.levigo.jadice.web.client.tools.instruction.URIInstructionExecutor
- All Implemented Interfaces:
InstructionExecutor<PageView>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canExecute
(Instruction instruction, PageView pageView) Indicates whether or not this instance is able to execute the givenInstruction
, using the given context object where necessary.void
execute
(Instruction in, PageView pageView) Perform that which is described by the givenInstruction
.boolean
pertainsTo
(Class<? extends Instruction> aClass) Returns whether or not thisInstructionExecutor
knows how to deal with a given type ofInstruction
.
-
Constructor Details
-
URIInstructionExecutor
public URIInstructionExecutor()
-
-
Method Details
-
pertainsTo
Description copied from interface:InstructionExecutor
Returns whether or not thisInstructionExecutor
knows how to deal with a given type ofInstruction
.- Specified by:
pertainsTo
in interfaceInstructionExecutor<PageView>
- Parameters:
aClass
- the type ofInstruction
for which information is requested- Returns:
true
if thisInstructionExecutor
is able to handleInstruction
s of the given type,false
otherwise.
-
canExecute
Description copied from interface:InstructionExecutor
Indicates whether or not this instance is able to execute the givenInstruction
, using the given context object where necessary.- Specified by:
canExecute
in interfaceInstructionExecutor<PageView>
- Parameters:
instruction
- the instruction in questionpageView
- holds additional, implementation-specific information- Returns:
true
if this instance is able to execute the givenInstruction
using the given context object where necessary;false
otherwise.
-
execute
Description copied from interface:InstructionExecutor
Perform that which is described by the givenInstruction
.- Specified by:
execute
in interfaceInstructionExecutor<PageView>
- Parameters:
in
- holds the information which specifies what to performpageView
- holds additional, implementation-specific information
-