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

com.tinkerpop.frames.modules.javahandler.JavaHandlerClass 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.

The 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;

/**
 * 

* When using the {@link JavaHandler} you can change the implementation class * from the default to another class by using this annotation on your frame * class. For example: *

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy