com.samskivert.velocity
Interface Logic

All Known Implementing Classes:
DummyLogic

public interface Logic

The logic class is called upon to populate the WebMacro web context, prior to invoking a particular WebMacro template upon it to generate a response page. The logic takes the place of the servlet in the standard WebMacro architecture and should perform all of the logic involved in handling a particular request.

See Also:
DispatcherServlet

Method Summary
 void invoke(Application app, InvocationContext context)
          Perform any necessary computation and populate the context with data for this request.
 

Method Detail

invoke

void invoke(Application app,
            InvocationContext context)
            throws Exception
Perform any necessary computation and populate the context with data for this request. Any exceptions that are thrown will be converted into friendly error messages using the exception mapping services.

Parameters:
app - The application that generated this logic instance (used to access application-wide resources).
context - The invocation context in scope for this request.
Throws:
Exception
See Also:
ExceptionMap


Copyright © 2000-2008 Michael Bayne. All Rights Reserved.