public class OAuthTokenValidaterStubFactory
extends org.apache.commons.pool.BasePoolableObjectFactory
| Constructor and Description |
|---|
OAuthTokenValidaterStubFactory() |
| Modifier and Type | Method and Description |
|---|---|
Object |
makeObject()
This creates a OAuth2TokenValidationServiceStub object to the pool.
|
void |
passivateObject(Object o)
This is used to clean up the OAuth validation stub and releases to the object pool.
|
public Object makeObject() throws Exception
makeObject in interface org.apache.commons.pool.PoolableObjectFactorymakeObject in class org.apache.commons.pool.BasePoolableObjectFactoryException - thrown when creating the object.public void passivateObject(Object o) throws Exception
passivateObject in interface org.apache.commons.pool.PoolableObjectFactorypassivateObject in class org.apache.commons.pool.BasePoolableObjectFactoryo - object that needs to be released.Exception - throws when failed to release to the poolCopyright © 2017 WSO2. All rights reserved.