예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 /**
  * @return
  * @deprecated Use {@link Module}s via {@link FramedGraphFactory}.
  */
 public Collection<AnnotationHandler<? extends Annotation>> getAnnotationHandlers() {
   checkFactoryConfig();
   return config.getAnnotationHandlers().values();
 }
예제 #3
0
 /**
  * @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);
 }
예제 #4
0
 /**
  * @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);
 }
예제 #5
0
 /**
  * @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);
 }
예제 #6
0
 /**
  * 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);
 }