Package 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.

See:
          Description

Interface Summary
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 Processor.process(InputStream, OutputStream) that turns the 'in' InputStream into a String, calls ObjectFormatterAbstract.format(Object), and pipes the String returned to the 'out' OutputStream.
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
Processor Base interface to represent any sort of class that takes an input and returns an output; mostly used to define classes that perform transformations to messages, whatever form those messages may take (Objects, Strings, bytes, etc...) or to satisfy any part of a Request/Response process or other Messaging process.
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 Processor.process(java.io.InputStream, java.io.OutputStream) that turns the 'in' InputStream into a String, calls process(String in), and returns on ObjectOutputStream via the the out OutputStream.
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.
 

Class Summary
ObjectFormatterAbstract Base implementation of the ObjectFormatter interface; will implement a template Processor.process method at some point in the future, currently throws an UnsupportedOperationException
StringProcessorAbstract Abstract base implementation of SpringProcessor that implements a template method for the inherited method Processor.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.
 

Package org.janux.bus.processor Description

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.



Copyright © 2005-2013 Janux. All Rights Reserved.