snifos.communication
Class CommModuleInfo

java.lang.Object
  extended bysnifos.communication.CommModuleInfo

public class CommModuleInfo
extends java.lang.Object

This class represents informations about communication module read from server configuration file.

Version:
$Id: CommModuleInfo.java,v 1.2 2004/05/08 21:55:25 mwerla Exp $

Constructor Summary
CommModuleInfo()
           
 
Method Summary
 java.lang.reflect.Constructor getConstructor()
          Returns constructor of main communication module class.
 java.util.Properties getProperties()
          Returns Properties describing communication module configuration.
 void setClassName(java.lang.String className)
          Sets main communication module class name.
 void setProperty(java.lang.String name, java.lang.String value)
          Sets single property of communication module configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommModuleInfo

public CommModuleInfo()
Method Detail

setClassName

public void setClassName(java.lang.String className)
                  throws java.lang.SecurityException,
                         java.lang.NoSuchMethodException,
                         java.lang.ClassNotFoundException
Sets main communication module class name.

Parameters:
className - Class name to set.
Throws:
java.lang.SecurityException - Thrown by the security manager to indicate a security violation during reflection use.
java.lang.NoSuchMethodException - Thrown when main class does not have default constructor (without parameters).
java.lang.ClassNotFoundException - Thrown when given class is not found in classpath.
See Also:
CommModule

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Sets single property of communication module configuration.

Parameters:
name - Property name.
value - Property value.

getProperties

public java.util.Properties getProperties()
Returns Properties describing communication module configuration.

Returns:
Properties describing communication module configuration.

getConstructor

public java.lang.reflect.Constructor getConstructor()
Returns constructor of main communication module class.

Returns:
Constructor of main communication module class.


Copyright © 2001-2004 MoMaT & MWe Team. All Rights Reserved.