com.electrotank.electroserver4.extensions
Class BaseManagedObjectFactory

java.lang.Object
  extended by com.electrotank.electroserver4.extensions.BaseManagedObjectFactory
All Implemented Interfaces:
ExtensionLifeCycle, ManagedObjectFactory, ManagedObjectFactoryLifeCycle

public abstract class BaseManagedObjectFactory
extends Object
implements ManagedObjectFactory, ManagedObjectFactoryLifeCycle


Constructor Summary
BaseManagedObjectFactory()
          Creates a new instance of BaseManagedObjectFactory
 
Method Summary
 Object acquireObject(EsObjectRO parameters)
           
 void destroy()
          Automatically invoked when the object class is destroyed.
 ManagedObjectFactoryApi getApi()
           
 void init(EsObjectRO parameters)
          Automatically invoked when the object class is instantiated, after api is available.
 void releaseObject(Object object)
           
 void setApi(ManagedObjectFactoryApi api)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseManagedObjectFactory

public BaseManagedObjectFactory()
Creates a new instance of BaseManagedObjectFactory

Method Detail

init

public void init(EsObjectRO parameters)
Description copied from interface: ExtensionLifeCycle
Automatically invoked when the object class is instantiated, after api is available. Usually initializes the extension's ExtensionComponentConfiguration, RoomConfiguration, and if it is a game, the GameConfiguration. If there are any variables for the plugin in the Extension.xml file, they will be found in the parameters EsObjectRO.

Specified by:
init in interface ExtensionLifeCycle
Parameters:
parameters - EsObjectRO that may contain XML parameters to be read
See Also:
EsObjectRO, ExtensionComponentConfiguration, RoomConfiguration, GameConfiguration

acquireObject

public Object acquireObject(EsObjectRO parameters)
Specified by:
acquireObject in interface ManagedObjectFactory

releaseObject

public void releaseObject(Object object)
Specified by:
releaseObject in interface ManagedObjectFactory

destroy

public void destroy()
Description copied from interface: ExtensionLifeCycle
Automatically invoked when the object class is destroyed.

Specified by:
destroy in interface ExtensionLifeCycle

getApi

public ManagedObjectFactoryApi getApi()
Specified by:
getApi in interface ManagedObjectFactory

setApi

public void setApi(ManagedObjectFactoryApi api)
Specified by:
setApi in interface ManagedObjectFactory


Copyright © 2007 Electrotank, Inc. All Rights Reserved.