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.PoolableObjectFactory
makeObject
in class org.apache.commons.pool.BasePoolableObjectFactory
Exception
- thrown when creating the object.public void passivateObject(Object o) throws Exception
passivateObject
in interface org.apache.commons.pool.PoolableObjectFactory
passivateObject
in class org.apache.commons.pool.BasePoolableObjectFactory
o
- object that needs to be released.Exception
- throws when failed to release to the poolCopyright © 2018 WSO2. All rights reserved.