org.abstracthorizon.danube.support.logging.patternsupport
Interface PatternProcessor

All Known Implementing Classes:
CurrentDateTimeProcessor, HandlingTimeProcessor, HTTPPatternProcessor, SocketDetailsProcessor

public interface PatternProcessor

This interface defines pattern processor.

Author:
Daniel Sendula

Method Summary
 int init(int index, StringBuffer message)
          Checks if parameters are present and if so replaces it and caches their indexes
 void process(Connection connection, Object[] array)
          Adds parameter values to cached index positions
 

Method Detail

init

int init(int index,
         StringBuffer message)
Checks if parameters are present and if so replaces it and caches their indexes

Parameters:
index - next index to be used
message - message to be altered

process

void process(Connection connection,
             Object[] array)
Adds parameter values to cached index positions

Parameters:
connection - connection
array - array


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.