コード例 #1
0
ファイル: FramedGraph.java プロジェクト: mikesname/frames
 /**
  * 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
ファイル: FramedGraph.java プロジェクト: mikesname/frames
 /**
  * @return
  * @deprecated Use {@link Module}s via {@link FramedGraphFactory}.
  */
 public Collection<AnnotationHandler<? extends Annotation>> getAnnotationHandlers() {
   checkFactoryConfig();
   return config.getAnnotationHandlers().values();
 }
コード例 #3
0
ファイル: FramedGraph.java プロジェクト: mikesname/frames
 /**
  * @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
ファイル: FramedGraph.java プロジェクト: mikesname/frames
 /**
  * @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
ファイル: FramedGraph.java プロジェクト: mikesname/frames
 /**
  * @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
ファイル: FramedGraph.java プロジェクト: mikesname/frames
 /**
  * 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);
 }