Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## it.gotoandplay.smartfoxserver.extensions.examples
Class SchedulerExample

    java.lang.Object
      it.gotoandplay.smartfoxserver.extensions.AbstractExtension
          it.gotoandplay.smartfoxserver.extensions.examples.SchedulerExample

All Implemented Interfaces:
  it.gotoandplay.smartfoxserver.events.IEventListener, it.gotoandplay.smartfoxserver.extensions.ISmartFoxExtension

    public class SchedulerExample

extends AbstractExtension

Field Summary

Fields inherited from class it.gotoandplay.smartfoxserver.extensions.AbstractExtension
`adminExtension`

Constructor Summary
`SchedulerExample()`

Method Summary
`void` | `destroy()` This method should be overridden by the child class.
`void` | `handleInternalEvent(InternalEventObject ieo)`
`void` | `handleRequest(java.lang.String cmd, ActionscriptObject ao, User u, int fromRoom)`
`void` | `handleRequest(java.lang.String cmd, java.lang.String[] params, User u, int fromRoom)`
`void` | `init()` This method should be overridden by the child class.

Methods inherited from class it.gotoandplay.smartfoxserver.extensions.AbstractExtension
`getOwnerRoom, getOwnerZone, handleInternalRequest, handleRequest, isActive, loadConfig, registerForEvents, sendResponse, sendResponse, sendResponse, sendResponse, setActive, setOwner, trace, unRegister`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SchedulerExample

    public SchedulerExample()

Method Detail

### init

    public void init()

  Description copied from class: `AbstractExtension`
  This method should be overridden by the child class.
  Here you should run your extension initialization code. This method is executed once, when the extension is started.

  Specified by:
    `init` in interface `it.gotoandplay.smartfoxserver.extensions.ISmartFoxExtension`
  Overrides:
    `init` in class `AbstractExtension`

### destroy

    public void destroy()

  Description copied from class: `AbstractExtension`
  This method should be overridden by the child class.
  This method is called when the extension is being stopped buy the server: here you should release the resources acquired by the extension (close files, db connections etc...)

  Specified by:
    `destroy` in interface `it.gotoandplay.smartfoxserver.extensions.ISmartFoxExtension`
  Overrides:
    `destroy` in class `AbstractExtension`

### handleRequest

    public void handleRequest(java.lang.String cmd,
                              java.lang.String[] params,
                              User u,
                              int fromRoom)

### handleRequest

    public void handleRequest(java.lang.String cmd,
                              ActionscriptObject ao,
                              User u,
                              int fromRoom)

### handleInternalEvent

    public void handleInternalEvent(InternalEventObject ieo)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD