Framework Professional Edition Package


com.prosyst.util.parser
Interface ParserService


public interface ParserService

This interface provides utility methods for parsing of commands for the administration of the framework.

Author:
Daniel Janev, Krasen Yanev

Method Summary
 ParserService getInstance()
          This method should return new instance of any implementation of this parser service.
 void parseCommand(java.lang.String command)
          Parses the specified command and calls its execute method.
 void release()
          Stops the memory info thread of the parser service if it is running.
 void setOutputStream(java.io.OutputStream output)
          Sets the output stream for the result messages.
 

Method Detail

setOutputStream

void setOutputStream(java.io.OutputStream output)
Sets the output stream for the result messages.

Parameters:
output - the output for the result of the command's executing .

parseCommand

void parseCommand(java.lang.String command)
Parses the specified command and calls its execute method.

Parameters:
command - the specified command.

getInstance

ParserService getInstance()
This method should return new instance of any implementation of this parser service. A bundle which needs two and more instances of ParserService with different outputs should use this method for getting different instances of the implementation of this service.

Returns:
new instance of this commands parser service.

release

void release()
Stops the memory info thread of the parser service if it is running.


Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved