org.ogf.graap.wsag.server.actions
Interface IActionHandler

All Known Subinterfaces:
ICreateAgreementAction, IGetTemplateAction, INegotiationAction
All Known Implementing Classes:
AbstractCreateAgreementAction, AbstractGetTemplateAction, AbstractNegotiationAction, CreatePendingAgreementAction, CreatePendingAgreementWithNotificationAction, ExampleCreateAgreementAction, NegotiatePendingAgreementAction, NegotiationUnsupportedAction, Sample1CreateAgreementAction, Sample1NegotiateAgreementAction, Sample2CreateAgreementAction, Sample2NegotiateAgreementAction, SampleCreateAgreementAction, SampleGetTemplateAction, SampleMonitoredAgreementAction, SampleNegotiateAction, VelocityAgreementTemplateAction

public interface IActionHandler

An action handler provides the functionality that is executed for a specific invocation of an agreement factory.

Author:
Oliver Waeldrich

Method Summary
 IActionHandlerContext getHandlerContext()
          Returns the context of this action handler.
 void initialize()
          Initializes an action handler.
 void setHandlerContext(IActionHandlerContext context)
          Sets the context for this action handler.
 

Method Detail

setHandlerContext

void setHandlerContext(IActionHandlerContext context)
Sets the context for this action handler.

Parameters:
context - Sets the context for this handler instance. A handler uses the context i.e. to look up the handler configuration during initialization.
See Also:
IActionHandlerContext

getHandlerContext

IActionHandlerContext getHandlerContext()
Returns the context of this action handler.

Returns:
the current handler context

initialize

void initialize()
                throws ActionInitializationException
Initializes an action handler. This method is called when a agreement factory action initializes its action handlers. It is called once during the the engine initialization.

Throws:
ActionInitializationException - Indicates an error during handler initialization.


Copyright © 2008-2012. All Rights Reserved.