com.electrotank.electroserver4.extensions
Interface EventHandler

All Known Subinterfaces:
ExtensionEventHandler, LoginEventHandler, LogoutEventHandler, UserVariableEventHandler
All Known Implementing Classes:
BaseEvent, BaseLoginEventHandler, BaseLogoutEventHandler

public interface EventHandler


Method Summary
 EventApi getApi()
          Returns the api for any class that implements this interface.
 void setApi(EventApi api)
          Sets the api.
 

Method Detail

getApi

EventApi getApi()
Returns the api for any class that implements this interface. When implementing, simply return the variable api, which will be automatically injected into the class.

Returns:
EventApi api

setApi

void setApi(EventApi api)
Sets the api. When implementing, simply use this.api = api.

Parameters:
api - api for the EventHandler


Copyright © 2007 Electrotank, Inc. All Rights Reserved.