All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.umlg.runtime.adaptor.GremlinGroovyPipelineInterceptor.groovy Maven / Gradle / Ivy

There is a newer version: 2.0.15
Show newest version
package org.umlg.runtime.adaptor

/**
 * Created by pieter on 2014/04/21.
 */
class GremlinGroovyPipelineInterceptor implements Interceptor {
    @Override
    Object beforeInvoke(Object object, String methodName, Object[] arguments) {
        null
    }

    @Override
    Object afterInvoke(Object object, String methodName, Object[] arguments, Object result) {
        if( methodName == 'V' ) {
//            GremlinGroovyPipeline pipeline = (GremlinGroovyPipeline)result;
            return result.hasNot('deleted');
        } else {
            return result
        }
    }

    @Override
    boolean doInvoke() {
        return true
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy