org.objectweb.jonathan.libs.resources.tcpip
Class JConnectionMgrFactory
java.lang.Object
|
+--org.objectweb.jonathan.libs.kernel.GenericFactory
|
+--org.objectweb.jonathan.libs.resources.tcpip.JConnectionMgrFactory
- All Implemented Interfaces:
- Factory
- public class JConnectionMgrFactory
- extends GenericFactory
JConnectionMgr
Factory implementation.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JConnectionMgrFactory
public JConnectionMgrFactory()
getUsedComponents
protected final Object[] getUsedComponents(Context _context)
- Returns the components required to create a new
JConnectionMgr instance.
The provided context may contain an element of name "max_idle" and type
String. It must contain an element of name "connection_factory" and type
TcpIpConnectionMgr.
- Overrides:
getUsedComponents in class GenericFactory
- Parameters:
_context - a Context instance;- Returns:
- the components needed to create an JConnectionMgr instance.
newInstance
protected final Object newInstance(Context _context,
Object[] _used_components)
throws JonathanException
- Returns a new JConnectionMgr instance created using the provided
components.
- Overrides:
newInstance in class GenericFactory
- Parameters:
_context - a context;_used_components - components to be used to create a new
JConnectionMgr instance;- Returns:
- a new JConnectionMgr instance;