/** * Register a <code>FrameInitializer</code> that will be called whenever a new vertex or edge is * added to the graph. The initializer may mutate the vertex (or graph) before returning the * framed element to the user. * * @param frameInitializer the frame initializer * @deprecated Use {@link Module}s via {@link FramedGraphFactory}. */ public void registerFrameInitializer(FrameInitializer frameInitializer) { checkFactoryConfig(); config.addFrameInitializer(frameInitializer); }
/** * @return * @deprecated Use {@link Module}s via {@link FramedGraphFactory}. */ public Collection<AnnotationHandler<? extends Annotation>> getAnnotationHandlers() { checkFactoryConfig(); return config.getAnnotationHandlers().values(); }
/** * @param annotationType the type of the annotation handler to remove * @deprecated Use {@link Module}s via {@link FramedGraphFactory}. */ public void unregisterAnnotationHandler(final Class<? extends Annotation> annotationType) { checkFactoryConfig(); config.getAnnotationHandlers().remove(annotationType); }
/** * @param annotationType the type of annotation handled by the annotation handler * @return a boolean indicating if the framedGraph has registered an annotation handler for the * specified type * @deprecated Use {@link Module}s via {@link FramedGraphFactory}. */ public boolean hasAnnotationHandler(final Class<? extends Annotation> annotationType) { checkFactoryConfig(); return config.getAnnotationHandlers().containsKey(annotationType); }
/** * @param annotationType the type of annotation handled by the annotation handler * @return the annotation handler associated with the specified type * @deprecated Use {@link Module}s via {@link FramedGraphFactory}. */ public AnnotationHandler<?> getAnnotationHandler( final Class<? extends Annotation> annotationType) { checkFactoryConfig(); return config.getAnnotationHandlers().get(annotationType); }
/** * The method used to register a new annotation handler for every new annotation a new annotation * handler has to be registered in the framed graph * * @param handler the annotation handler * @deprecated Use {@link Module}s via {@link FramedGraphFactory}. */ public void registerAnnotationHandler(final AnnotationHandler<? extends Annotation> handler) { checkFactoryConfig(); config.addAnnotationhandler(handler); }