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

com.tinkerpop.frames.modules.javahandler.JavaHandler Maven / Gradle / Ivy

Go to download

Frames is a framework for exposing the elements of a Blueprints graph as Java objects. Instead of writing software in terms of vertices and edges, with Frames, software is written in terms of domain objects and their relationships to each other.

There is a newer version: 2.6.0
Show newest version
package com.tinkerpop.frames.modules.javahandler;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 

* Use a Java class to handle frame method calls. Unless overridden using the * {@link JavaHandlerClass} annotation the default handler will be a nested * class inside your frame interface called Impl. For example: *

*
 * 
 * interface Person {
 * 
 *   @JavaHandler
 *   public String doSomething(); 
 * 
 *   abstract class Impl implements Person, JavaHandlerContext {
 *     public String doSomething() {
 *       return "Use Frames!";
 *     }
 *   }
 * }
 * 
* * @author Bryn Cooke */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface JavaHandler { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy