internalInformationPort
Class InternalInformationPortController

java.lang.Object
  extended by internalInformationPort.InternalInformationPortController
All Implemented Interfaces:
InternalInformationPortInterface

public class InternalInformationPortController
extends java.lang.Object
implements InternalInformationPortInterface

Controller class of component InternalInformationPort. Implements the architecture interface InternalInformationPortInterface.

Used for information exchange (for example via log files (output), property files (input) or display output) with "internal" communication partners (usually the system administrator).

Author:
Karl-Peter Fuchs

Constructor Summary
InternalInformationPortController()
          Generates a new InternalInformationPort component, used for information exchange (e. g. generating log files, reading settings or displaying status information) with "internal" communication partners (usually the system administrator).
 
Method Summary
 java.util.logging.Logger getLogger()
          Returns a Logger that can be used to log messages in a file and/or display them on the standard output (depending on the log Levels, specified in property file).
 java.lang.String getProperty(java.lang.String key)
          Returns the property with the specified key from the property file.
 void initialize()
          Empty initializer.
 java.lang.Object setProperty(java.lang.String key, java.lang.String value)
          Sets the property with the specified key to the bypassed value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalInformationPortController

public InternalInformationPortController()
Generates a new InternalInformationPort component, used for information exchange (e. g. generating log files, reading settings or displaying status information) with "internal" communication partners (usually the system administrator).

See Also:
initialize()
Method Detail

initialize

public void initialize()
Empty initializer.


getLogger

public java.util.logging.Logger getLogger()
Returns a Logger that can be used to log messages in a file and/or display them on the standard output (depending on the log Levels, specified in property file).

Specified by:
getLogger in interface InternalInformationPortInterface
Returns:
Logger that can be used to log messages in a file and/or display them on the standard output.

getProperty

public java.lang.String getProperty(java.lang.String key)
Returns the property with the specified key from the property file.

Specified by:
getProperty in interface InternalInformationPortInterface
Parameters:
key - The property key.
Returns:
The property with the specified key in the property file.

setProperty

public java.lang.Object setProperty(java.lang.String key,
                                    java.lang.String value)
Sets the property with the specified key to the bypassed value.

Specified by:
setProperty in interface InternalInformationPortInterface
Parameters:
key - Identifier of the property.
value - The value corresponding to the key.
Returns:
The previous value of the specified key, or null if it did not have one.