org.apache.cactus.client
class ClientConfigurationChecker

java.lang.Object
  |
  +--org.apache.cactus.client.ClientConfigurationChecker

public class ClientConfigurationChecker
extends java.lang.Object

Helper class that checks configuration parameters (for the client side) like if the CLASSPATH contains the jar for the Servlet API, if the cactus.properties file is in the CLASSPATH, ... Note: there cannot be any logging in the checking process as the logging system has not been initialized yet when the methods of this class are called.

Version:
$Id: ClientConfigurationChecker.java,v 1.2 2002/04/10 00:30:53 vmassol Exp $
Author:
Vincent Massol

Method Summary
 void checkCactusProperties()
          Checks if the cactus.properties file is in the CLASSPATH.
 void checkHttpClient()
          Check if the httpclient jar is in the CLASSPATH
 void checkLog4j()
          Verify that log_client.properties is in the CLASSPATH if the log4j jar is in the classpath TODO: This method should no longer be needed with AspectJ as we should be able to ensure that logging is always initialized.
static ClientConfigurationChecker getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkCactusProperties

public void checkCactusProperties()
Checks if the cactus.properties file is in the CLASSPATH.

checkHttpClient

public void checkHttpClient()
Check if the httpclient jar is in the CLASSPATH

checkLog4j

public void checkLog4j()
Verify that log_client.properties is in the CLASSPATH if the log4j jar is in the classpath TODO: This method should no longer be needed with AspectJ as we should be able to ensure that logging is always initialized. Need to be tested though, so I'll leave it for the moment.

getInstance

public static ClientConfigurationChecker getInstance()
Returns:
the singleton instance


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.