Example usage for org.apache.commons.pool MethodCall returned

List of usage examples for org.apache.commons.pool MethodCall returned

Introduction

In this page you can find the example usage for org.apache.commons.pool MethodCall returned.

Prototype

Object returned

To view the source code for org.apache.commons.pool MethodCall returned.

Click Source Link

Usage

From source file:edu.illinois.enforcemop.examples.apache.pool.MethodCallPoolableObjectFactory.java

public boolean validateObject(final Object obj) {
    final MethodCall call = new MethodCall("validateObject", obj);
    methodCalls.add(call);//from  www .  j  a v a  2 s  . c  o m
    if (validateObjectFail) {
        throw new PrivateException("validateObject");
    }
    final boolean r = valid;
    call.returned(new Boolean(r));
    return r;
}