Beispiel #1
0
  private void initGenericActions() {
    final ExtensionPointHandler<GenericAction> extensionPoint =
        (ExtensionPointHandler<GenericAction>)
            ExtensionPointHandler.getOrCreateExtensionPoint(
                this.bundleContext, (Class) GenericAction.class);
    extensionPoint.addListener(
        (ExtensionPointListener)
            new ExtensionPointListener<GenericAction>() {
              public void addService(final GenericAction genericAction) {
                GenericActionHolder.getInstance().addGenericAction(genericAction);
              }

              public void removeService(final GenericAction genericAction) {
                GenericActionHolder.getInstance().removeGenericAction(genericAction);
              }
            });
  }
Beispiel #2
0
  private void initFileTypeHandlers() {
    final ExtensionPointHandler<FileTypeHandler> extensionPoint =
        (ExtensionPointHandler<FileTypeHandler>)
            ExtensionPointHandler.getOrCreateExtensionPoint(
                this.bundleContext, (Class) FileTypeHandler.class);
    extensionPoint.addListener(
        (ExtensionPointListener)
            new ExtensionPointListener<FileTypeHandler>() {
              public void removeService(final FileTypeHandler fileTypeHandler) {
                FileTypeHolder.getInstance().removeFileTypeHandler(fileTypeHandler);
              }

              public void addService(final FileTypeHandler fileTypeHandler) {
                FileTypeHolder.getInstance().addFileTypeHandler(fileTypeHandler);
              }
            });
  }
Beispiel #3
0
 private void initServerTypes() {
   ExtensionPointHandler.getOrCreateExtensionPoint(this.bundleContext, (Class) ServerTypeI.class);
   this.bundleContext.registerService(
       (Class) ServerTypeI.class, (Object) ServerTypeI.LocalFiles, (Dictionary) null);
   this.bundleContext.registerService(
       (Class) ServerTypeI.class, (Object) ServerTypeI.QuickLoad, (Dictionary) null);
   this.bundleContext.registerService(
       (Class) ServerTypeI.class, (Object) ServerTypeI.DAS, (Dictionary) null);
   this.bundleContext.registerService(
       (Class) ServerTypeI.class, (Object) ServerTypeI.DAS2, (Dictionary) null);
 }
Beispiel #4
0
 private void initOperators() {
   ExtensionPointHandler.getOrCreateExtensionPoint(this.bundleContext, (Class) Operator.class);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new ComplementSequenceOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new CopyAlignmentOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new CopyAnnotationOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new CopyGraphOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new CopyMismatchOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new CopySequenceOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class,
       (Object) new DepthOperator(FileTypeCategory.Alignment),
       (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class,
       (Object) new DepthOperator(FileTypeCategory.Annotation),
       (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class,
       (Object) new SummaryOperator(FileTypeCategory.Annotation),
       (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class,
       (Object) new SummaryOperator(FileTypeCategory.Alignment),
       (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new DiffOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new ExclusiveAOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new ExclusiveBOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new IntersectionOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new InverseTransformer(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new InverseLogTransform(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class,
       (Object) new InverseLogTransform(2.718281828459045),
       (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new InverseLogTransform(2.0), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new InverseLogTransform(10.0), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new LogTransform(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new LogTransform(2.718281828459045), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new LogTransform(2.0), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new LogTransform(10.0), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new PowerTransformer(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new PowerTransformer(0.5), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new MaxOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new MeanOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new MedianOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new MinOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new NotOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new ProductOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new RatioOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new SumOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new UnionOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new XorOperator(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new GraphMultiplexer(), (Dictionary) null);
   this.bundleContext.registerService(
       (Class) Operator.class, (Object) new FindJunctionOperator(), (Dictionary) null);
 }