Uses of Interface
org.janux.bus.processor.Processor

Packages that use Processor
org.janux.bus.processor The org.janux.bus.processor package contains simple interfaces for classes that perform transformations in the context of a Service Bus; for example, serializing or formatting an object into a String, or parsing a String into an object. 
 

Uses of Processor in org.janux.bus.processor
 

Subinterfaces of Processor in org.janux.bus.processor
 interface ObjectFormatter
          Base interface to represent any sort of class that takes an Object as it input and returns a String as output; Derived classes that extend ObjectFormatterAbstract, only need to implement the ObjectFormatter.format(Object) as that class provides a convenience implementation of process(InputStream, OutputStream) that turns the 'in' InputStream into a String, calls ObjectFormatterAbstract.format(Object), and pipes the String returned to the 'out' OutputStream.
 interface ObjectFormatterGeneric<T>
          Base interface to represent any sort of class that takes an Object as it input and returns a String as output; this is a version equivalent to ObjectFormatter, but which uses generics to type the object being formatted
 interface StringParser
          Base interface to represent any sort of class that takes a String as input and returns an Object as output; mostly used to define classes that parse/unmarshall Strings into objects Derived classes that extend StringParserAbstract (TODO), only need to implement the StringParser.parse(String in) as that class provides a convenience implementation of process(java.io.InputStream, java.io.OutputStream) that turns the 'in' InputStream into a String, calls StringProcessorAbstract.process(String in), and returns on ObjectOutputStream via the the out OutputStream.
 interface StringProcessor
          Base interface to represent any sort of class that takes a String as input and returns a String as output; mostly used to define classes that perform transformations to String messages, or to satisfy any part of a Request/Response process or other messaging process that uses String Messages.
 

Classes in org.janux.bus.processor that implement Processor
 class ObjectFormatterAbstract
          Base implementation of the ObjectFormatter interface; will implement a template Processor.process method at some point in the future, currently throws an UnsupportedOperationException
 class StringProcessorAbstract
           Abstract base implementation of SpringProcessor that implements a template method for the inherited method process(InputStream, OutputStream) that converts the InputStream into a String, processes the String, and writes the processed String into the OutputStream; sub-classes should provide an implementation of the StringProcessor.process(String) method.
 



Copyright © 2005-2013 Janux. All Rights Reserved.