net.craftforge.essential.controller.phases
Class InvocationPhase

java.lang.Object
  extended by net.craftforge.essential.controller.phases.InvocationPhase
All Implemented Interfaces:
Phase

public class InvocationPhase
extends Object
implements Phase

Creates an instance of the resource class, initializes annotated class properties and invokes the resource method. Sets the result of the resource method.

Since:
03.02.2011
Author:
Christian Bick

Constructor Summary
InvocationPhase(State state, Setup setup)
          Creates an invocation phase from a controller state and setup.
 
Method Summary
 void run()
          Runs the phase.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvocationPhase

public InvocationPhase(State state,
                       Setup setup)
Creates an invocation phase from a controller state and setup.

Parameters:
state - The controller state
setup - The controller setup
Method Detail

run

public void run()
         throws ControllerException
Runs the phase.

Specified by:
run in interface Phase
Throws:
ControllerException - Failed to run phase


Copyright © 2011. All Rights Reserved.