Package com.saperion.connector.pool
Class TechUserKeyedSessionPoolFactory
- java.lang.Object
-
- org.apache.commons.pool2.BaseObject
-
- org.apache.commons.pool2.BaseKeyedPooledObjectFactory<com.lexmark.saperion.remote.common.authentication.Credentials,com.saperion.connector.authentication.Session>
-
- com.saperion.connector.pool.GenericKeyedSessionPoolFactory
-
- com.saperion.connector.pool.TechUserKeyedSessionPoolFactory
-
- All Implemented Interfaces:
org.apache.commons.pool2.KeyedPooledObjectFactory<com.lexmark.saperion.remote.common.authentication.Credentials,com.saperion.connector.authentication.Session>
public class TechUserKeyedSessionPoolFactory extends GenericKeyedSessionPoolFactory
This factory only allows to create ClassicConnector instances for technical users only. If this is not a technical user then an exception occurs
-
-
Constructor Summary
Constructors Constructor Description TechUserKeyedSessionPoolFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.pool2.PooledObject<com.saperion.connector.authentication.Session>makeObject(com.lexmark.saperion.remote.common.authentication.Credentials credentials)This method will be called, when no idle connection is available.-
Methods inherited from class com.saperion.connector.pool.GenericKeyedSessionPoolFactory
create, createConnector, destroyObject, init, init, validateObject, wrap
-
Methods inherited from class org.apache.commons.pool2.BaseKeyedPooledObjectFactory
activateObject, passivateObject
-
-
-
-
Method Detail
-
makeObject
public org.apache.commons.pool2.PooledObject<com.saperion.connector.authentication.Session> makeObject(com.lexmark.saperion.remote.common.authentication.Credentials credentials) throws java.lang.ExceptionThis method will be called, when no idle connection is available. A new SaClassicConnector will be created.- Specified by:
makeObjectin interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<com.lexmark.saperion.remote.common.authentication.Credentials,com.saperion.connector.authentication.Session>- Overrides:
makeObjectin classGenericKeyedSessionPoolFactory- Parameters:
credentials- the key to make a new session for- Returns:
- the created SaClassicConnector.
- Throws:
java.lang.Exception- if an error occurs.
-
-