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

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

Go to download

Windup Frames is an extension of the upstream Frames project, with tools to ease debugging and integration within windup.

There is a newer version: 4.0.1.Final
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;

import com.tinkerpop.frames.FrameInitializer;

/**
 * Allows methods in a java handler implementation to be called when a vertex or an edge is added to the graph.
 * This effectively has the same function as a {@link FrameInitializer}.
 * 
 * For each interface in the hierarchy initializer methods will be called.
 * 
 * 
 * interface A {
 * 
 *   abstract class Impl implements A {
 *   
 *     @Initializer
 *     void init() {
 *       //Called when a framed vertex or edge is added to the graph.
 *     }
 *   }
 * 
 * }
 * 
 * 
* * @author Bryn Cooke * */ @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface Initializer { }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy