Class PublishAnnotatedOperation<D,​P extends Publishable>

    • Constructor Detail

      • PublishAnnotatedOperation

        protected PublishAnnotatedOperation​(InputSocket.Factory isf,
                                            java.lang.Class<D> dataType,
                                            java.lang.Class<P> publishType,
                                            java.util.function.Function<D,​P> converter,
                                            MapNetworkPublisherFactory publisherFactory)
    • Method Detail

      • valueMethodStream

        protected java.util.stream.Stream<java.lang.reflect.Method> valueMethodStream()
        Gets a stream of all valid methods annotated with PublishValue in the class of the data to publish. The methods are sorted by weight.
      • getSocketType

        public java.lang.Class<D> getSocketType()
      • get

        protected java.lang.Object get​(java.lang.reflect.Method accessor,
                                       java.lang.Object instance)
        Helper method for invoking an accessor method on an object.
        Parameters:
        accessor - the accessor method to invoke
        instance - the object to invoke the accessor on
        Returns:
        Value returned by the accessor method, or null if the method could not be invoked.
      • cleanUp

        public void cleanUp()
        Description copied from interface: Operation
        Allows the step to clean itself up when removed from the pipeline. This should only be called by Step.setRemoved() to ensure correct synchronization.