com.electrotank.electroserver4.extensions
Interface ManagedObjectFactory
- All Known Implementing Classes:
- BaseManagedObjectFactory
public interface ManagedObjectFactory
A managed object factory is a special case object that can be used
to create objects that need to be tracked over time.
Any piece of code in an extension can call a managed object factory
and request or return an object to it.
An excellent use for managed object factories is accessing a
database connection pool.
In this case, the connection itself is the managed object and the
factory is the pool manager.
- See Also:
BaseManagedObjectFactory,
ManagedObjectFactoryLifeCycle
acquireObject
Object acquireObject(EsObjectRO parameters)
releaseObject
void releaseObject(Object object)
getApi
ManagedObjectFactoryApi getApi()
setApi
void setApi(ManagedObjectFactoryApi api)
Copyright © 2007 Electrotank, Inc. All Rights Reserved.